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

How Do You Detect Who's Dead?

I'm making a footrace game called Spartacus Run. I need to detect who died in the game, for my bonus points system. I also want to make it so that it gets who has been teleported into the game, so people in the lobby can't 'farm' themselves on their friends. Anyone know how to do that?

1 answer

✓ Accepted answer

for the dying part

--if this script was the child of player

script.Parent.Character.Humaniod.Died:connect(function()
	--BLAH
end)

for the other part just put a bool in the player and set it to false and if they do get teleported successfully then set it to true and you can name it like CanObtainPoints or something like that lel

4 comments

0

Thanks. One up.

0

:D

0

Humanoid is misspelt in your post.

0

Oh sorry i made that script up in my head XD

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