Advertisement
Adm_ggx

Untitled

Jul 4th, 2025
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.22 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local gui = Instance.new("ScreenGui", game.CoreGui)
  3.  
  4. local frame = Instance.new("Frame", gui)
  5. frame.Size = UDim2.new(0, 220, 0, 100)
  6. frame.Position = UDim2.new(0, 20, 0, 200)
  7. frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  8. frame.Active, frame.Draggable = true, true
  9.  
  10. local title = Instance.new("TextLabel", frame)
  11. title.Size = UDim2.new(1, -30, 0, 30)
  12. title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  13. title.Text = "Script made by userr0011"
  14. title.TextColor3 = Color3.new(1, 1, 1)
  15. title.TextSize = 16
  16. title.TextXAlignment = Enum.TextXAlignment.Left
  17.  
  18. local minimize = Instance.new("TextButton", frame)
  19. minimize.Position = UDim2.new(1, -30, 0, 0)
  20. minimize.Size = UDim2.new(0, 30, 0, 30)
  21. minimize.Text = "-"
  22. minimize.TextColor3 = Color3.new(1, 1, 1)
  23. minimize.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  24.  
  25. local btn = Instance.new("TextButton", frame)
  26. btn.Position = UDim2.new(0.1, 0, 0.5, 0)
  27. btn.Size = UDim2.new(0.8, 0, 0.4, 0)
  28. btn.Text = "GodMode: OFF"
  29. btn.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  30. btn.TextColor3 = Color3.new(1, 1, 1)
  31. btn.TextSize = 18
  32. btn.Font = Enum.Font.SourceSansBold
  33.  
  34. local god = false
  35. btn.MouseButton1Click:Connect(function()
  36.     god = not god
  37.     btn.Text = god and "GodMode: ON" or "GodMode: OFF"
  38.     if god then
  39.         coroutine.wrap(function()
  40.             while god do
  41.                 local h = player.Character and player.Character:FindFirstChildOfClass("Humanoid")
  42.                 if h then h.Health = h.MaxHealth end
  43.                 wait(0.1)
  44.             end
  45.         end)()
  46.     end
  47. end)
  48.  
  49. -- Restore image
  50. local restore = Instance.new("ImageButton", gui)
  51. restore.Size = UDim2.new(0, 40, 0, 40)
  52. restore.Position = UDim2.new(0, 10, 0, 10)
  53. restore.Image = "rbxassetid://6031094678"
  54. restore.BackgroundTransparency = 1
  55. restore.Visible = false
  56.  
  57. local drag = Instance.new("Frame", gui)
  58. drag.Size = restore.Size
  59. drag.Position = restore.Position
  60. drag.BackgroundTransparency = 1
  61. drag.Active, drag.Draggable = true, true
  62. drag.Visible = false
  63. restore.Parent = drag
  64.  
  65. minimize.MouseButton1Click:Connect(function()
  66.     frame.Visible = false
  67.     restore.Visible = true
  68.     drag.Visible = true
  69. end)
  70.  
  71. restore.MouseButton1Click:Connect(function()
  72.     frame.Visible = true
  73.     restore.Visible = false
  74.     drag.Visible = false
  75. end)
Tags: Roblox Script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement