local bool = false
local players = game.Players:GetPlayers()
local team1 = game.Teams.Team1
local team2 = game.Teams.Team2
while true do
wait(1)
if game.Players.NumPlayers ==1 then
wait(1)
print("Starting game")
for _,v in next, players do
bool = not bool
v.TeamColor = ((bool1 and team1.TeamColor) or team2.TeamColor)
end
end
end
I have no clue why this script wont get all the player and assign them to the team to split up the server? Any help?

1 comment
Make sure to check the output for any errors.