I started a war game, I only want 6 players on each team, like if this were to work in a LocalScript..
if game.Teams.TEAMNAME.NumPlayers == 6 and game.Teams.TEAMNAME.PlayerAdded then
game.Players.LocalPlayer.Team = "TEAMNAME2"
end
PlayerAdded is the thing I'm not sure about. I don't know if it should be there. I need a better script, because, obviously, this doesn't work. There are gonna be 12 players allowed in the game. 6 each team.
Even the NumPlayers part I'm worried about, it's maybe not supposed to be there.
The Script Does Not Work
Please help me with this. Thank you.

5 comments
I answered something like this, check it out: https://scriptinghelpers.org/questions/5774/how-do-i-make-this-spread-the-teams-equally
What's rval and dval, do I change those two to the teamnames or the change the colors to the team colors?
And do I change the numbers next to rval and dval to the number I want the max to be? 6?
(i'm sorry for my delay), rval and dval are just number values to say how many players are there in each team. I will make a formal answer.