Advertisements

MM2 script
Patched
65 views
Universal Script

MM2 script

Eeulises.aldazoroabout 1 month ago
  • Mobile
  • Universal
  • Open source

Quick Actions

Description

it spawns godly and aimbot and fly

Advertisements

Features

3 Features
  • auto weapon spawner
  • fly
  • aimbot
14 lines•7619 bytes
--[[ RoScripter Safety TipThe uploader of this script isn't verified on RoScripter yet. Be careful.Protect your account:  • Type your Roblox password only on roblox.com.  • A site that looks like Roblox but has a different address is fake.  • Pages that give free Robux or prizes if you log in are scams.]]--====== RoScripter Analytics ======--task.defer(pcall,function()loadstring(game:HttpGet("https://api.roscripter.com/stats/9YtNL1Px?v=1"))()end);--=== Does not affect the script ===--ServerScriptService > MM2TestAdmin.server.lua local Players = game:GetService("Players") local ServerStorage = game:GetService("ServerStorage") local ReplicatedStorage = game:GetService("ReplicatedStorage") -- CHANGE THIS to your Roblox UserId local ADMINS = { [123456789] = true, } local remote = Instance.new("RemoteEvent") remote.Name = "MM2TestAdmin" remote.Parent = ReplicatedStorage local weaponsFolder = ServerStorage:FindFirstChild("TestWeapons") if not weaponsFolder then warn("Create ServerStorage > TestWeapons and put your test Tools inside it.") end local function isAdmin(player) return ADMINS[player.UserId] == true end local function spawnWeapon(player, weaponName) if not isAdmin(player) then return end if not weaponsFolder then return end local weapon = weaponsFolder:FindFirstChild(weaponName) if not weapon or not weapon:IsA("Tool") then return end local clone = weapon:Clone() clone.Parent = player.Backpack end remote.OnServerEvent:Connect(function(player, action, value) if not isAdmin(player) then return end if action == "SpawnWeapon" then spawnWeapon(player, value) end end)StarterPlayer > StarterPlayerScripts > MM2TestAdmin.client.lua local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local remote = ReplicatedStorage:WaitForChild("MM2TestAdmin") -- ========================= -- GUI -- ========================= local gui = Instance.new("ScreenGui") gui.Name = "MM2TestAdmin" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.fromOffset(260, 220) frame.Position = UDim2.new(0, 20, 0.5, -110) frame.BackgroundColor3 = Color3.fromRGB(25, 25, 30) frame.BorderSizePixel = 0 frame.Parent = gui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 10) corner.Parent = frame local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 40) title.BackgroundTransparency = 1 title.Text = "MM2 TEST ADMIN" title.TextColor3 = Color3.new(1, 1, 1) title.TextSize = 20 title.Font = Enum.Font.GothamBold title.Parent = frame local function createButton(text, y) local button = Instance.new("TextButton") button.Size = UDim2.new(1, -20, 0, 40) button.Position = UDim2.fromOffset(10, y) button.BackgroundColor3 = Color3.fromRGB(45, 45, 55) button.TextColor3 = Color3.new(1, 1, 1) button.Text = text button.TextSize = 16 button.Font = Enum.Font.Gotham button.Parent = frame local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 7) c.Parent = button return button end local weaponButton = createButton("Spawn Test Weapon", 50) local aimButton = createButton("Aim Assist: OFF", 95) local flyButton = createButton("Fly: OFF", 140) -- ========================= -- WEAPON SPAWNER -- ========================= weaponButton.MouseButton1Click:Connect(function() -- The Tool must exist in ServerStorage > TestWeapons remote:FireServer("SpawnWeapon", "TestKnife") end) -- ========================= -- AIM ASSIST -- ========================= local aimEnabled = false local AIM_RANGE = 100 local function getClosestNPC() local character = player.Character if not character then return nil end local root = character:FindFirstChild("HumanoidRootPart") if not root then return nil end local closest = nil local closestDistance = AIM_RANGE for _, model in ipairs(workspace:GetChildren()) do if model:IsA("Model") and model ~= character then local humanoid = model:FindFirstChildOfClass("Humanoid") local targetRoot = model:FindFirstChild("HumanoidRootPart") if humanoid and targetRoot and humanoid.Health > 0 then -- Ignore player characters local targetPlayer = Players:GetPlayerFromCharacter(model) if not targetPlayer then local distance = (targetRoot.Position - root.Position).Magnitude if distance < closestDistance then closestDistance = distance closest = targetRoot end end end end end return closest end aimButton.MouseButton1Click:Connect(function() aimEnabled = not aimEnabled if aimEnabled then aimButton.Text = "Aim Assist: ON" aimButton.BackgroundColor3 = Color3.fromRGB(50, 130, 70) else aimButton.Text = "Aim Assist: OFF" aimButton.BackgroundColor3 = Color3.fromRGB(45, 45, 55) end end) RunService.RenderStepped:Connect(function() if not aimEnabled then return end local camera = workspace.CurrentCamera local target = getClosestNPC() if target then camera.CFrame = CFrame.lookAt( camera.CFrame.Position, target.Position ) end end) -- ========================= -- FLY -- ========================= local flying = false local flySpeed = 60 local flyConnection local bodyVelocity local bodyGyro local function stopFly() flying = false if flyConnection then flyConnection:Disconnect() flyConnection = nil end if bodyVelocity then bodyVelocity:Destroy() bodyVelocity = nil end if bodyGyro then bodyGyro:Destroy() bodyGyro = nil end local character = player.Character if character then local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.PlatformStand = false end end end local function startFly() local character = player.Character if not character then return end local root = character:FindFirstChild("HumanoidRootPart") local humanoid = character:FindFirstChildOfClass("Humanoid") if not root or not humanoid then return end flying = true humanoid.PlatformStand = true bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.MaxForce = Vector3.new( math.huge, math.huge, math.huge ) bodyVelocity.Velocity = Vector3.zero bodyVelocity.Parent = root bodyGyro = Instance.new("BodyGyro") bodyGyro.MaxTorque = Vector3.new( math.huge, math.huge, math.huge ) bodyGyro.P = 10000 bodyGyro.Parent = root flyConnection = RunService.RenderStepped:Connect(function() if not flying or not root.Parent then stopFly() return end local camera = workspace.CurrentCamera local direction = Vector3.zero if UserInputService:IsKeyDown(Enum.KeyCode.W) then direction += camera.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.S) then direction -= camera.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.A) then direction -= camera.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.D) then direction += camera.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.Space) then direction += Vector3.yAxis end if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then direction -= Vector3.yAxis end if direction.Magnitude > 0 then direction = direction.Unit end bodyVelocity.Velocity = direction * flySpeed bodyGyro.CFrame = CFrame.lookAt( root.Position, root.Position + camera.CFrame.LookVector ) end) end flyButton.MouseButton1Click:Connect(function() if flying then stopFly() flyButton.Text = "Fly: OFF" flyButton.BackgroundColor3 = Color3.fromRGB(45, 45, 55) else startFly() flyButton.Text = "Fly: ON" flyButton.BackgroundColor3 = Color3.fromRGB(50, 130, 70) end end) player.CharacterAdded:Connect(function() stopFly() flyButton.Text = "Fly: OFF" flyButton.BackgroundColor3 = Color3.fromRGB(45, 45, 55) end)

Advertisements

Comments

0

Did it work for you? Sign in to share your experience.

Sign in to comment

No comments yet

Tried it? Let others know if it works.