Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Mainscript dosen't change team on the second round?

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 answer

I believe you never set the Spy.Value back down to 0, so it will never run the if statement if Spys.Value == 0 then again

1 comment

0

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

This discussion is preserved as it was. New answers, comments, and votes are closed.