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

Team Assigning help?

So ive got no idea on how to do this,But the idea is simple,Each time the function is ran,All of the players which are currently ingame,Are split evenly into teams.

function ChoseTEAMS()
	for i,v in pairs(Game.Players:GetPlayers()) do 
	pcall(function() 
	v.TeamColor = "Really Red"
	wait(0.03*4)
	end) 
end

As i said,I am really bad with the team stuff. I dont really use teams often.

1 answer

✓ Accepted answer

You dont need pcall on this.

function CHOOSETEAMS()
for _, v in pairs(game.Players:GetPlayers()) do
v.TeamColor=BrickColor.new("Really red")
wait(0.03/4)
end
end

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