How To Make Teams In Order Roblox Studio

Опубликовано: 05 Июль 2026
на канале: DevBlocks
77
3

Today, I will show you how to order your teams as Roblox's default method orders them by color which can be annyoing.

Script (in ServerScriptService):

-- ServerScriptService: Create Teams in the exact order you want
local Teams = game:GetService("Teams")

-- CONFIGURATION: Add your teams here in the exact order you want them to appear
local TeamSettings = {
{ name = "Lobby", color = BrickColor.new("Medium stone grey"), autoAssign = true },
{ name = "Red Team", color = BrickColor.new("Baby blue"), autoAssign = false },
{ name = "Blue Team", color = BrickColor.new("Bright blue"), autoAssign = false },
{ name = "Green Team", color = BrickColor.new("Bright green"), autoAssign = false },
}

-- Function to generate the teams
local function createTeams()
for index, data in ipairs(TeamSettings) do
-- Check if the team already exists to avoid duplicates
local existingTeam = Teams:FindFirstChild(data.name)

if not existingTeam then
local newTeam = Instance.new("Team")
newTeam.Name = data.name
newTeam.TeamColor = data.color
newTeam.AutoAssignable = data.autoAssign
newTeam.Parent = Teams

print("Created Team: " .. data.name)
else
-- If it exists, just update its properties
existingTeam.TeamColor = data.color
existingTeam.AutoAssignable = data.autoAssign
end
end
end

-- Run the function
createTeams()

-- To add another team simply copy one team line and paste it underneath.
--    • How To Make Teams In Order Roblox Studio  

Make sure to like and subscribe :3!