Help with configure the order of the teams

Hello, how can I configure the order of the teams? I want the guess to be down and the others up

image

i want this team order:

image

1 Like

Please see the following post:

2 Likes

You can also create the teams in a script which creates it in the order you code it every time.

Example:

local Teams = game:GetService("Teams")

local redTeam = Instance.new("Team", Teams)
redTeam.TeamColor = BrickColor.new("Bright red")
redTeam.AutoAssignable = true
redTeam.Name = "Red Team"

local blueTeam = Instance.new("Team", Teams)
blueTeam.TeamColor = BrickColor.new("Bright blue")
blueTeam.AutoAssignable = true
blueTeam.Name = "Blue Team"

local yellowTeam = Instance.new("Team", Teams)
yellowTeam.TeamColor = BrickColor.new("Brick yellow")
yellowTeam.AutoAssignable = true
yellowTeam.Name = "Yellow Team"

Note how red is created first, then blue, then yellow

so it would always look like this in-game:
teams

Just wanted to add another example on how to order it.

Hope this helps!

2 Likes
local Order = { -- Position, Team Name
	[1] = "Team3",
	[2] = "Team2",
	[3] = "Team1",
}


local TeamService = game:GetService("Teams")
local Teams = TeamService:GetTeams()
local Temp = Instance.new("Folder")
for _, v in ipairs(Teams) do
	v.Parent = Temp
end
for i, v in ipairs(Order) do
	Order[i] = Temp:FindFirstChild(v)
end
for i, v in ipairs(Order) do
	if v ~= nil then
		v.Parent = TeamService
	end
end
Temp:Destroy()

TeamOrder.rbxl (21.9 KB)

2 Likes

Thank you guys so much! You guys have helped me a lot with this. :smiley:

3 Likes