Advertisement
qspitzer

kick on death

Aug 4th, 2021
1,558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. local player = game:GetService("Players").LocalPlayer.Character.Humanoid
  2.  
  3. while true do
  4.     if player.Health == 0 then
  5.         local deadPlayer = game:GetService("Players").LocalPlayer
  6.         deadPlayer:Kick("You died")
  7.     end
  8.     wait(0.1)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement