local players = game.Players:GetChildren()
local teams = {"Persimmon", "Cyan"}
local count = 1
for i, v in pairs(players) do
v.TeamColor = BrickColor.new(teams[count])
count = count + 1
v.PlayerFolder:WaitForChild("Team").Value = tostring(v.TeamColor)
if count > #teams then
count = 1
end
end
The whole point of this script is to get random teams for every player. The only problem I have noticed is that every round I'm on the exact same team. Can anyone please help?

3 comments
[disregard i misunderstood]
I mean that every single time I get the same team. When I have 3 people on I tried for 10 rounds, and all 3 of us got the exact same team
use math.randomseed to set a new seed, ideally the result of tick()