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

How do I make a game that changes teams?

Asked by 10 years ago

How do I make a game were the teams change after every round?And how do I get the game to randomly choose who is on which team?

1 answer

Log in to vote
0
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
10 years ago

Based on the code from this answer on how to generate balanced teams, you would take the table game.Players:GetPlayers() and scramble the indices before assigning teams to each player.

Ad

Answer this question