Advertisement
chilli69420

God mode

Feb 28th, 2022 (edited)
3,317
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 1 0
  1. mouse = game.Players.LocalPlayer:GetMouse()
  2. tool = Instance.new("Tool")
  3. tool.RequiresHandle = false
  4. tool.name = ""
  5. local toggled = false
  6. tool.Name = "Toggle God Mode (Off)"
  7. tool.Activated:Connect(function()
  8. local h = script.Parent.Parent:FindFirstChild("Humanoid")
  9. if h then
  10. if toggled == false then
  11. h.MaxHealth = math.huge
  12. h.Health = math.huge
  13. script.Parent.Name = "Toggle God Mode (On)"
  14. toggled = true
  15. else
  16. h.MaxHealth = 100
  17. h.Health = 100
  18. script.Parent.Name = "Toggle God Mode (Off)"
  19. toggled = false
  20. end
  21. end
  22. end)
  23. tool.Parent = game.Players.LocalPlayer.Backpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement