Any way to order the rank from highest to lowest?

Hi! Today I made a script to make a leaderstats in my game, but how do I make it the rank of my group from major to minor?

Serious answers please.
If you need a question, dont hesitate to answer me!

1 Like

Hey! You’re asking to sort the ranks of your groups in descending order? If so, every group has a role-set ID that contains a number. That number can be used to check which role is higher than the next (or lower in this case).

-- LocalScript Example
local Player = game.Players.LocalPlayer

if Player:GetRankInGroup(groupid) < 2 then
   -- Code, RoletSetId = 1 is usually the first role after guest being 0