Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how can i detect if a player died?

Asked by 2 years ago

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

0
For the future, this is not a request site, it is a site to help with existing code. appxritixn 2235 — 2y
0
sorry ragdollkiiing2 19 — 2y
0
sorry ragdollkiiing2 19 — 2y

1 answer

Log in to vote
4
Answered by
appxritixn 2235 Moderation Voter Community Moderator
2 years ago

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

player.Character.Humanoid.Died:Connect(function()
    -- logic here
end)
0
this is not functioning well anymore, it's deprecated and a big chance it won't work. WINDOWS10XPRO 438 — 2y
0
The documentation says it is not deprecated, and it seems to work every time. If it is could you provide a better alternative? radiant_Light203 1166 — 2y
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 Xapelize 2658 — 2y
0
It also works...... It's not deprecated and im pretty sure you did a mistake on something Xapelize 2658 — 2y
Ad

Answer this question