Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mouse = game.Players.LocalPlayer:GetMouse()
- tool = Instance.new("Tool")
- tool.RequiresHandle = false
- tool.name = ""
- local toggled = false
- tool.Name = "Toggle God Mode (Off)"
- tool.Activated:Connect(function()
- local h = script.Parent.Parent:FindFirstChild("Humanoid")
- if h then
- if toggled == false then
- h.MaxHealth = math.huge
- h.Health = math.huge
- script.Parent.Name = "Toggle God Mode (On)"
- toggled = true
- else
- h.MaxHealth = 100
- h.Health = 100
- script.Parent.Name = "Toggle God Mode (Off)"
- toggled = false
- end
- end
- end)
- tool.Parent = game.Players.LocalPlayer.Backpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement