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

How Do You Detect Who's Dead?

Asked by 10 years ago

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

Log in to vote
-1
Answered by 10 years ago

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

0
Thanks. One up. SquirreIOnToast 309 — 10y
0
:D TochiWasHere 10 — 10y
0
Humanoid is misspelt in your post. Articulating 1335 — 10y
0
Oh sorry i made that script up in my head XD TochiWasHere 10 — 10y
Ad

Answer this question