function shuffleTeams()
local curteam=1
for i,v in pairs(game.Players:GetPlayers()) do
if curteam==1 then
curteam=2;
v.TeamColor=BrickColor.new("Bright red")
else
curteam=1;
v.TeamColor=BrickColor.new("Bright blue")
end
end
end
while true do
wait(15)
shuffleTeams()
end
well this is the script, i run in studio with 4 players. no error messages, but no team changing...
If this is a bad method of random, equal team shuffling, please show me the correct method.

1 comment
I could have told you why, lol