Team's name is stage 1 but it's displaying the team's teamcolor in the list

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:
image

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.

1 Like

That is odd. When I test both in Studio and Roblox Client this is the result I get:

Could it be related to something else?

1 Like

wow… I’ll try to restart the studio.

Wow, the grey team was created under the Teams’ service folder somehow…

1 Like