1 | local player = game.Players.LocalPlayer |
2 | local character = player.Character |
3 | local humanoid = character:FindFirstChild( "Humanoid" ) |
4 |
5 | while true do |
6 | if humanoid.Health = = 0 then |
7 | print ( "So you have chosen, Death" ) |
8 | end |
9 | end |
This is my script. How can I check if a player died and this code is on starterplayer