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

How do I do make a team change on death?

1 answer

You can connect a function to the PlayerAdded event of the Players Service, which will fire when a player joins the server. In that function, there you set the Team property of the player to the Spectator team object.

You can check if a player died by using the Died event of the player's humanoid, which will fire when the humanoid has been killed. In the event, you'll compare if the number of the alive players is less than or equal to 1.

3 comments

0

This is very confusing to me, how exactly do i do this?

0

I can't spoon-feed you a script, as SH isn't a request site

0

But, you can read up on the PlayerAdded event and the Died event, and learn to script, if you don't know how to

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