How could I make a sorting system for like a custom leaderboard or inventory
Get the list of all all children, for example let’s say all pets in inventory as a table.
Sort their levels or something another from high to low. You can find table.sort tutorials in another topics.
After the sorting is completed, display them where ever you want by order.
How about for like leaderboard stats
Get the all values with GlobalDataStore and sort them as I said.
I think u could use table.sort