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.
✓ ANSWER ACCEPTED
How do I make a script that changes the players team to the opposite team?
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.

3 comments
Bad questions 101
depends, do you want a timer on it, so every 180 seconds they switch
no I want the player to switch teams when they die