How do I order the teams in the leaderboard?

Hi everyone! :grin:

I am making an obby (I’m not very experienced at scripting lol), and I am using a team change spawn points system (You step onto the spawn location, and it changes your team+spawn location).

When I test it, it turns out like this. They are in the right order in the workspace. Is there any way to script it so it’s the right order, or is there a setting for it?
Screen Shot 2020-08-22 at 4.20.53 PM

Thank you for your help :smile:

5 Likes

There have been requests to add a DisplayOrder to teams( such as this one ), but it doesn’t yet exist. Currently, the order they show up in the player list, is based off of the order they were parented in.

3 Likes

Ohh ok! I’ll just redo the whole teams and see if it works, because I completely forgot my order lol.

2 Likes

Recently there was a bug discussion about this:

Supposedly it was fixed.

2 Likes

All you have to do is drag them out, then drag them in according to the order you want them to be in. (First - Last.)

13 Likes

Thank you so much! I can’t believe I hadn’t thought of that before :joy:

4 Likes

This doesnt work anymore, any ideas?

it works.
limitlimitlimitlimit

Thats weird, it doesnt work for me

Hey there, I was having the same problem, so I decided to script the order I want them in. This is in ServerScriptService and all you have to do is order your code the way you want your teams to be ordered:

local team1 = Instance.new("Team")
team1.Name = "Stage 1"
team1.TeamColor = BrickColor.new("Lime Green")
team1.Parent = game.Teams

local team2 = Instance.new("Team")
team2.Name = "Stage 2"
team2.TeamColor = BrickColor.new("New Yeller")
team2.Parent = game.Teams

local team3 = Instance.new("Team")
team3.Name = "Stage 3"
team3.TeamColor = BrickColor.new("Hot Pink")
team3.Parent = game.Teams

(Sorry for necroposting)

1 Like