itsKimo Posted August 31, 2021 Share Posted August 31, 2021 so I made a leaderboard skript but I'm not sure how to put it on my sidebar, I asked #skript and they told me to use a sorting function thing but i'm not sure how, can somebody help me? Link to comment Share on other sites More sharing options...
FlapKakker Posted September 8, 2021 Share Posted September 8, 2021 (edited) It's always the same and this skript can be found anywhere on the internet! loop {YourListVariable::*: add 1 to {_size} if {_low.to.high.list::%loop-value%} is not set: set {_low.to.high.list::%loop-value%} to loop-index else: set {_n} to 0 loop {_size} times: set {_n} to {_n}+1 {_low.to.high.list::%loop-value-1%.%{_n}%} is not set set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index stop loop wait 1 tick set {_n} to size of {_low.to.high.list::*} loop {_low.to.high.list::*}: set {_high.to.low.list::%{_n}%} to loop-value set {_n} to {_n}-1 wait 1 tick #now you'll have to loop {_high.to.low.list::*} to access the descending leaderboard list! Edited September 8, 2021 by FlapKakker wrong indentation Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now