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

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

Asked by
P100D 590 Moderation Voter
9 years ago

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

5
You script it. yoshiegg6 176 — 9y
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." Perci1 4988 — 9y

1 answer

Log in to vote
2
Answered by 9 years ago

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.
0
Thanks! I suspected as much, but thought it would be a good idea to ask. P100D 590 — 9y
Ad

Answer this question