In this script, I still want players to randomly join either teams, but how do I also have a team with limited players?
This is my script inside Workspace.
teams = {"Crimson", "Black"} teamLobby = {"White"} teamPlrs = game.Players:GetChildren() for i,v in pairs(teamPlrs) do wait(2) v.TeamColor = BrickColor.new(teams[math.random(1,#teams)]) end
In this code block, I tried adding limits to each team, but I get an error on line 7.
teams = {["Crimson"] = 1, ["Black"] = 10}
If there's any help, ideally a script, I would be appreciated.