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