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

How would you evenly spread players onto new teams?

Asked by 9 years ago

I have this code:

01map = game.Lighting.Crossroads:Clone()
02red = game.Lighting.Red:Clone()
03blue = game.Lighting.Blue:Clone()
04green = game.Lighting.Green:Clone()
05yellow = game.Lighting.Yellow:Clone()
06map.Parent = game.Workspace
07red.Parent = game.Teams
08blue.Parent = game.Teams
09green.Parent = game.Teams
10yellow.Parent = game.Teams

Basically, it clones maps into Workspace and teams into, well, Teams. I want to, after this, make players go on these teams, and make them even. How would one go about doing that?

Answer this question