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

How do I make a script that changes the players team to the opposite team?

So I am trying to make a script that changes the players team to the opposite one. In the script I want the player to keep changing to the other team but can not figure out how to do this correctly. For example if the player is on the red team then they get moved to the blue team when they are on the blue team they go to the red team.

3 comments

0

Bad questions 101

0

depends, do you want a timer on it, so every 180 seconds they switch

0

no I want the player to switch teams when they die

1 answer

✓ Accepted answer

There's two ways of doing this, you can either change by team colour, or change by team name.

Assuming you know how to get the Player:

Player.TeamColor = BrickColor.new("_____") and Player.Team = ______

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