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

Is there an easy way to shuffle teams, or will I have to assign TeamColor manually?

Is there some command to randomize teams automatically, or do I just have to use some iterator loop?

2 comments

5

You script it.

1

You need to do the logic of "if red equals blue, give them a random team. if red is greater than blue, put them on blue, otherwise put them on red."

1 answer

✓ Accepted answer

To answer your question:

##No.

There is no pre-made function from roblox to randomize teams. As mentioned by Perci1 in the comments, you will need to manually make the logic, then use a loop to go through each player and assign either Team1 or Team2.

#####I will not be providing an example script to avoid this being marked as a request. However a quick look on free models will find you a solution idea.

1 comment

0

Thanks! I suspected as much, but thought it would be a good idea to ask.

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