Hello, I have created the script below to make teams. Only the Not It team is being created, what is the reason for that? The script is in the Workspace under a normal script object.
redTeam = Instance.new("Team", game.Teams) blueTeam = Instance.new("Team", game.Teams) redTeam.TeamColor = BrickColor.new("Really Red") blueTeam.TeamColor = BrickColor.new("Really Blue") redTeam.Name = "It" blueTeam.Name = "Not It" redTeam.AutoAssignable = true blueTeam.AutoAssignable = true
Thanks for reading!
Lua is case sensitive!
Have correct casing on the BrickColor values. If it says "Bright blue", then you use "Bright blue" not "Bright Blue". The game is automatically combining the teams together since BrickColor.new()
can not find the color you're looking for, it's defaulting to grey.
redTeam = Instance.new("Team", game.Teams) blueTeam = Instance.new("Team", game.Teams) redTeam.TeamColor = BrickColor.new("Really red") blueTeam.TeamColor = BrickColor.new("Really blue") redTeam.Name = "It" blueTeam.Name = "Not It" redTeam.AutoAssignable = true blueTeam.AutoAssignable = true