Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent = game.StarterGui
- wait()
- local m = game.Players.LocalPlayer:GetMouse()
- m.KeyDown:connect(function(k)
- if k:lower() == "r" then
- local c = game.Players.LocalPlayer.Character
- if c then
- local h = c:findFirstChild("Humanoid")
- if h then h.Health = 0 --Here goes the function, mine is to make the character sit
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement