What I'm trying to do is make a new team for every player that enters and have that team's name be the Player's name with a random TeamColor.
I can use BrickColor.Random() to find a random color for the Team, but how do I ensure (and still end up with a new team) that no two teams have the same color?
local color1 = BrickColor.Random() Team1.TeamColor = color1 local color2 = BrickColor.Random() while color2 == color1 do color2 = BrickColor.Random() end Team2.TeamColor = color2