Discuss Scratch

bubba11110
Scratcher
2 posts

How to make a leaderboard?

I want to know how to make a leaderboard that shows the username of the person who got the best time, and the time that they got, can someone help me on this?

when I receive [answer]
say [Thank you!]

Last edited by bubba11110 (May 19, 2021 21:46:16)

TheAnomalousPseudo
Scratcher
1000+ posts

How to make a leaderboard?

forever
if <(score) > (World Record)> then
set [World Record v] to (score)
set [☁ Record Holder v] to (join (username) (join [: ] (World Record)))
end
end

Last edited by TheAnomalousPseudo (May 19, 2021 23:08:45)



We ought to be careful with that octopus that takes over the servers. He's well armed.
Yusei-Fudo
Scratcher
1000+ posts

How to make a leaderboard?

TheAnomalousPseudo wrote:

forever
if <(score) > (World Record)> then
set [World Record v] to (score)
set [☁ Record Holder v] to (join (username) (join [: ] (World Record)))
end
end

Actually, that doesn't work. The username part doesn't work.

It's much more than just logging usernames to cloud variables, because that simply doesn't work. Cloud variables only support numbers see:

Don't you guys ever read that notice???

Please don't mind the colors of the following pictures, I changed the color of Scratch.
Anyway, use this script and follow my instructions:
Oh, I forgot one thing in the comments. Fill in the first 9 items blank when you are putting characters in the list. IT'S VERY CRUCIAL, AND YOU CANNOT FORGET THOSE 9 ROWS BEFORE YOU DO THIS IF YOU WANT IT TO WORK RIGHT!!

That's the encoder, the script that'll save your “Username”.

Now, it's time for the decoder:


That's all I have. Hope this helps.

Edited - please don't name/promote third-party browser extensions

Last edited by Harakou (June 5, 2021 23:35:36)


I'm a decent coder who has a huge passion for coding. I taught myself all the coding skills I have now. And with those skills, I have made some pretty decent projects, check them out! Be sure to ⭐ ❤️ & Follow, too! I have a few pictures below which are actually links. Click on them to take to different projects that I made. Might come in handy. :)

Need a project where you can check to see if you can use someone's camera or not? Here's one:


Need a project to detect when someone has clicked the stop sign? Take a look at this:

Need a project that can point at specific clones, etc? Why not use this:


Need to prank someone? Tell them to click this picture, but also make sure they're signed onto Scratch, otherwise, it doesn't work:


For more of my projects, just click on this picture:
TheAnomalousPseudo
Scratcher
1000+ posts

How to make a leaderboard?

Yusei-Fudo wrote:

It's much more than just logging usernames to cloud variables, because that simply doesn't work. Cloud variables only support numbers see:

Don't you guys ever read that notice???
I forgot, thanks for noticing.


We ought to be careful with that octopus that takes over the servers. He's well armed.
Yusei-Fudo
Scratcher
1000+ posts

How to make a leaderboard?

TheAnomalousPseudo wrote:

Yusei-Fudo wrote:

It's much more than just logging usernames to cloud variables, because that simply doesn't work. Cloud variables only support numbers see:

Don't you guys ever read that notice???
I forgot, thanks for noticing.

All good!

I'm a decent coder who has a huge passion for coding. I taught myself all the coding skills I have now. And with those skills, I have made some pretty decent projects, check them out! Be sure to ⭐ ❤️ & Follow, too! I have a few pictures below which are actually links. Click on them to take to different projects that I made. Might come in handy. :)

Need a project where you can check to see if you can use someone's camera or not? Here's one:


Need a project to detect when someone has clicked the stop sign? Take a look at this:

Need a project that can point at specific clones, etc? Why not use this:


Need to prank someone? Tell them to click this picture, but also make sure they're signed onto Scratch, otherwise, it doesn't work:


For more of my projects, just click on this picture:

Powered by DjangoBB