I'm making a game where this is pretty much the most important part. So, how would I make a random player join a specific team?
COMMUNITY QUESTION
How would I make a random player join a team? [UNANSWERED]
1 answer
Something like this;
pl = game.Players:GetPlayers()
rp = pl[math.random(#pl)]
rp.TeamColor = BrickColor.new("Really black")
rp = Random player.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Okay, but how do I make them swap to another team?
Thanks, that helps ALOT ;3
Changing the TeamColor should automatically change them to the other team. Where it says BrickColor.new("Really black"); put the exact name of the Team's color into the quotations.
Hmm, I just tested it, and it's not working, that's exactly what should work? (other than your previous comment)