Right now I am using a string and it works, the problem is that 10 is worth less than 2, 20 is worth less than 3, and so on. How can I fix this problem?
10% should be at the top not 5%.
If I was not using a string everything would work fine but then I can’t use a % after. Or is it possible by converting a number to a string or something? Maybe tostring()
This is how it looks like in the script (not the whole script)
I don’t think this would work with %'s after it. A possible solution would be to make the name of the leaderstat Progress (%) and having it be a IntValue.
Another solution would be making a custom or modified leaderboard then removing (gsubbing) the % and displaying the highest on top (so it still has the % but it is in order).
Is your code sorting by which value is greater? Or just change position when the value is changed. Example, 3% and 10%, 10% at top but when %3 is changed it moves to top.
What you doing is generating the value and it placing in the first place not if value is greater then it. I cant see any comparing operator over there. But it is work. And if we keep talking about this, thread will be out of the topic.