Advertisement
Fyzeq

R To Respawn

Dec 15th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. script.Parent = game.StarterGui
  2. wait()
  3. local m = game.Players.LocalPlayer:GetMouse()
  4. m.KeyDown:connect(function(k)
  5. if k:lower() == "r" then
  6. local c = game.Players.LocalPlayer.Character
  7. if c then
  8. local h = c:findFirstChild("Humanoid")
  9. if h then h.Health = 0 --Here goes the function, mine is to make the character sit
  10. end
  11. end
  12. end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement