Advertisement
Elvisfofo_rblx

Universal MOD Menu Script

Nov 25th, 2024 (edited)
4,607
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.43 KB | Gaming | 0 0
  1. -- Script made by Super Hacker Roblox
  2. -- Subscribe To Super Hacker Roblox!
  3. local player = game.Players.LocalPlayer
  4. local character = player.Character or player.CharacterAdded:Wait()
  5. local mouse = player:GetMouse()
  6.  
  7. local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  8. screenGui.Name = "ModMenuGui"
  9.  
  10. local frame = Instance.new("Frame", screenGui)
  11. frame.Size = UDim2.new(0.4, 0, 0.5, 0)
  12. frame.Position = UDim2.new(0.3, 0, 0.25, 0)
  13. frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  14. frame.BorderSizePixel = 2
  15. frame.BorderColor3 = Color3.fromRGB(0, 0, 255)
  16. frame.Draggable = true
  17. frame.Active = true
  18.  
  19. local titleBar = Instance.new("TextLabel", frame)
  20. titleBar.Size = UDim2.new(1, 0, 0.1, 0)
  21. titleBar.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  22. titleBar.Text = "Cheat Menu By SuperHacker"
  23. titleBar.TextColor3 = Color3.new(1, 1, 1)
  24. titleBar.Font = Enum.Font.SourceSansBold
  25. titleBar.TextSize = 20
  26. titleBar.BorderSizePixel = 0
  27.  
  28. local closeBtn = Instance.new("TextButton", titleBar)
  29. closeBtn.Size = UDim2.new(0.1, 0, 1, 0)
  30. closeBtn.Position = UDim2.new(0.9, 0, 0, 0)
  31. closeBtn.Text = "X"
  32. closeBtn.TextColor3 = Color3.new(1, 1, 1)
  33. closeBtn.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  34.  
  35. local minimizeBtn = Instance.new("TextButton", titleBar)
  36. minimizeBtn.Size = UDim2.new(0.1, 0, 1, 0)
  37. minimizeBtn.Position = UDim2.new(0.8, 0, 0, 0)
  38. minimizeBtn.Text = "-"
  39. minimizeBtn.TextColor3 = Color3.new(1, 1, 1)
  40. minimizeBtn.BackgroundColor3 = Color3.fromRGB(255, 165, 0)
  41.  
  42. closeBtn.MouseButton1Click:Connect(function()
  43.     screenGui:Destroy()
  44. end)
  45.  
  46. local isMinimized = false
  47. minimizeBtn.MouseButton1Click:Connect(function()
  48.     isMinimized = not isMinimized
  49.    
  50.     frame.BackgroundTransparency = isMinimized and 1 or 0
  51.     for _, child in pairs(frame:GetChildren()) do
  52.         if child ~= titleBar and child ~= minimizeBtn and child ~= closeBtn then
  53.             child.Visible = not isMinimized
  54.         end
  55.     end
  56. end)
  57.  
  58. local function createSwitch(name, position, callback)
  59.     local button = Instance.new("TextButton", frame)
  60.     button.Size = UDim2.new(0.9, 0, 0.1, 0)
  61.     button.Position = UDim2.new(0.05, 0, position, 0)
  62.     button.Text = name .. ": OFF"
  63.     button.TextColor3 = Color3.new(1, 1, 1)
  64.     button.BackgroundColor3 = Color3.fromRGB(30, 144, 255)
  65.     local enabled = false
  66.  
  67.     button.MouseButton1Click:Connect(function()
  68.         enabled = not enabled
  69.         button.Text = name .. ": " .. (enabled and "ON" or "OFF")
  70.         callback(enabled)
  71.     end)
  72. end
  73.  
  74. local infiniteJumpEnabled = false
  75. createSwitch("Infinite Jump", 0.2, function(state)
  76.     infiniteJumpEnabled = state
  77. end)
  78.  
  79. game:GetService("UserInputService").JumpRequest:Connect(function()
  80.     if infiniteJumpEnabled then
  81.         player.Character:FindFirstChildOfClass("Humanoid"):ChangeState(Enum.HumanoidStateType.Jumping)
  82.     end
  83. end)
  84.  
  85. local noclip = false
  86. createSwitch("NoClip", 0.3, function(state)
  87.     noclip = state
  88. end)
  89.  
  90. game:GetService("RunService").Stepped:Connect(function()
  91.     if noclip and character then
  92.         for _, part in pairs(character:GetChildren()) do
  93.             if part:IsA("BasePart") then
  94.                 part.CanCollide = false
  95.             end
  96.         end
  97.     end
  98. end)
  99.  
  100. local function createInputBox(name, position, defaultValue, callback)
  101.     local label = Instance.new("TextLabel", frame)
  102.     label.Size = UDim2.new(0.4, 0, 0.1, 0)
  103.     label.Position = UDim2.new(0.05, 0, position, 0)
  104.     label.Text = name
  105.     label.TextColor3 = Color3.new(1, 1, 1)
  106.     label.BackgroundColor3 = Color3.fromRGB(30, 144, 255)
  107.     label.TextScaled = true
  108.  
  109.     local inputBox = Instance.new("TextBox", frame)
  110.     inputBox.Size = UDim2.new(0.4, 0, 0.1, 0)
  111.     inputBox.Position = UDim2.new(0.55, 0, position, 0)
  112.     inputBox.Text = tostring(defaultValue)
  113.     inputBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  114.     inputBox.TextColor3 = Color3.new(1, 1, 1)
  115.     inputBox.TextScaled = true
  116.  
  117.     inputBox.FocusLost:Connect(function(enterPressed)
  118.         if enterPressed then
  119.             local value = tonumber(inputBox.Text)
  120.             if value then
  121.                 callback(value)
  122.             else
  123.                 inputBox.Text = tostring(defaultValue)
  124.             end
  125.         end
  126.     end)
  127. end
  128.  
  129. createInputBox("WalkSpeed", 0.4, 16, function(value)
  130.     player.Character.Humanoid.WalkSpeed = value
  131. end)
  132.  
  133. createInputBox("Gravity", 0.5, 196.2, function(value)
  134.     workspace.Gravity = value
  135. end)
  136.  
  137. createSwitch("Teleport Tool", 0.6, function(state)
  138.     if state then
  139.         local teleportTool = Instance.new("Tool", player.Backpack)
  140.         teleportTool.Name = "Teleport Tool"
  141.         teleportTool.RequiresHandle = false
  142.  
  143.         teleportTool.Activated:Connect(function()
  144.             local pos = mouse.Hit.Position
  145.             character:MoveTo(pos)
  146.         end)
  147.     else
  148.         local tool = player.Backpack:FindFirstChild("Teleport Tool")
  149.         if tool then
  150.             tool:Destroy()
  151.         end
  152.     end
  153. end)
  154.  
  155. local killAuraEnabled = false
  156. createSwitch("Kill Aura", 0.7, function(state)
  157.     killAuraEnabled = state
  158. end)
  159.  
  160. game:GetService("RunService").Heartbeat:Connect(function()
  161.     if killAuraEnabled then
  162.         for _, obj in pairs(workspace:GetChildren()) do
  163.             if obj:IsA("Model") and obj:FindFirstChild("Humanoid") then
  164.                 local humanoid = obj:FindFirstChild("Humanoid")
  165.                 if humanoid.Health > 0 and obj ~= character and (obj.PrimaryPart.Position - character.PrimaryPart.Position).Magnitude < 10 then
  166.                     humanoid.Health = 0
  167.                 end
  168.             end
  169.         end
  170.     end
  171. end)
  172.  
  173. local godModeEnabled = false
  174. createSwitch("God Mode", 0.8, function(state)
  175.     godModeEnabled = state
  176. end)
  177.  
  178. game:GetService("RunService").Heartbeat:Connect(function()
  179.     if godModeEnabled then
  180.         for _, part in pairs(character:GetChildren()) do
  181.             if part:IsA("BasePart") then
  182.                 part.Touched:Connect(function(hit)
  183.                     if hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
  184.                         hit.Parent.Humanoid.Health = 0
  185.                     end
  186.                 end)
  187.             end
  188.         end
  189.     end
  190. end)
  191.  
  192. player.CharacterAdded:Connect(function(newCharacter)
  193.     character = newCharacter
  194.     wait(0.5)
  195.     screenGui.Parent = player:WaitForChild("PlayerGui")
  196. end)
  197.  
  198. game:GetService("Players").PlayerRemoving:Connect(function()
  199.     screenGui.Parent = nil -- Remove GUI before player leaves
  200. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement