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:

            map = game.Lighting.Crossroads:Clone()
            red = game.Lighting.Red:Clone()
            blue = game.Lighting.Blue:Clone()
            green = game.Lighting.Green:Clone()
            yellow = game.Lighting.Yellow:Clone()
            map.Parent = game.Workspace
            red.Parent = game.Teams
            blue.Parent = game.Teams
            green.Parent = game.Teams
            yellow.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