All is working fine at the first round but at the second round it dosen't change team also no error and the game is fe
Script:
for i,v in pairs(game.Players:GetPlayers()) do
if Spys.Value == 0 then
if v.Team.Name == "Secret Service" then
v.Team = game.Teams.Spy
Spys.Value = Spys.Value + 1
end
end
end

1 comment
Nope it's always setting the value down to 0 but i found a solution already