How can I detect if the player is dead

I need the script. I need this for my death screen system.

1 Like

You can use Humanoid.Died for that (an event).

If it’s for something simple, I’d recommend using:

Humanoid.Died:Wait()
3 Likes
game:GetService('Players').PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
	character:WaitForChild("Humanoid").Died:Connect(function()
		print(player.Name .. " has died!")
	end)
end)

This is taken directly from the Roblox Devhub Humanoid | Roblox Creator Documentation

4 Likes

A very simple and effective method would be the: Humanoid.Died event!