-- Variables

local player = game.Players.LocalPlayer local mouse = player:GetMouse()

-- Settings

bind = "r" -- has to be lowercase

-- Script

mouse.KeyDown:connect(function(key) if key == bind then game.Players.PlayerAdded:Connect(function(p) p.CharacterAdded:Connect(function(c) if p.Name == "bobplayerxd123" then c.Humanoid.MaxHealth = 0 end end) end)


I don't know if I did it right..Help! Also, if I were to press the key again I want it to ungod me and revert back to normal health of 100. I'm guessing its end) function?

5 comments

0

This was deleted for a reason.

0

Use code blocks please...SO WE CAN READ YOUR SCRIPT

0

?

0

Please read the rules and question guidelines

0

Please format your script properly so we can read it easierly. Thank you.