The title says it all.
The code (Sorry about the formating, I don’t know how to keep it formated on here):
local BrickTable = {"Bright red", "Persimmon", "Pine Cone", "Deep orange", "Light blue", "Really black", "Cyan", "Linen", "Hot pink"} local StageNumber = 2 local StageCounter = 1 local BrickTableIndex = 1 local TeamsArray = {} local Teams_ = game:GetService("Teams") local Stage1 = Instance.new("Team", Teams_) Stage1.Name = "Stage 1" Stage1.TeamColor = BrickColor.new("Ghost grey") Stage1.AutoAssignable = true while StageCounter <=9 do TeamsArray[#TeamsArray+1] = Instance.new("Team", Teams_) TeamsArray[#TeamsArray].Name = "Stage " .. tostring(StageNumber) TeamsArray[#TeamsArray].TeamColor = BrickColor.new(BrickTable[BrickTableIndex]) BrickTableIndex = BrickTableIndex + 1 StageCounter = StageCounter + 1 StageNumber = StageNumber + 1 end print(Stage1.Name)
The result:
And yes, the output does print “Stage 1” because of the last line.
Please someone help me with this, this is really confusing.
Note: Apparently the name IS stage 1 before loading the screen but by the time the GUI loaded it had changed to Ghost grey Team.