Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how can i detect if a player died?

So I have been wondering how to detect if a player died and i dont know how im pretty sure it would be simple but i just want someone good at scripting to help me with this because im not the best at this stuff

3 comments

0

For the future, this is not a request site, it is a site to help with existing code.

0

sorry

0

sorry

1 answer

You can detect if a player dies using an event from Humanoid called Died.

player.Character.Humanoid.Died:Connect(function()
	-- logic here
end)

4 comments

0

this is not functioning well anymore, it's deprecated and a big chance it won't work.

0

The documentation says it is not deprecated, and it seems to work every time. If it is could you provide a better alternative?

0

fyi its a scripting website where we could help people, it doesnt need to be existing code for a question, but dont ask for existing code for a question

0

It also works...... It's not deprecated and im pretty sure you did a mistake on something

This discussion is preserved as it was. New answers, comments, and votes are closed.