How do I make an Arsenal type leaderboard?

So I’m making a game similar to Arsenal, and I need a leaderboard thing at the top like this
image

(basically a leaderboard that’s ordered from top kill to lowest kills & displays their kills, I already have the leaderstats sorted)

I have figured that I could use a UiGridLayout and use LayoutOrder to change where their icon & kills are shown so that it’s in order. but I’m not sure on how I would order the players.

1 Like

As a frames property has layoutOrder, which you should be able to change that to correspond with the player with most kill, I assume this would be done on a table to find the highest points.

1 Like

If you can get a list of players, then sort them with table.sort according to number of kills each player has. Then loop through the players and set the LayoutOrder of their icon in the leaderboard to the index of the player in the sorted table.

2 Likes