Click the Roll button. This generates a random number from 0 to 999,999. See if you can make it into the top 5 scores! Every once in awhile, I reset the game. I keep all the old scoreboards. You can view them by clicking the History button. The Hall of Fame shows the 10 highest and lowest scores of all time. NOTE: If you're a new Scratch member, it may warn you that your cloud data won't be saved, in which case you won't be able to make it onto the top scoreboard permanently.
This game demonstrates a Top 5 Score system which you could use in your own game. It makes use of Scratch's cloud variables. I did a substantial redesign in order to support high-load hammering by multiple people at once. Hopefully it works better now. I did another substantial redesign to take advantage of something which Lilifant7253 demonstrated to me: that cloud variables are not actually implemented as numbers, but are instead indefinitely-long strings, which are made up only of digits. That allowed me to support any length of user name (I had been limited to 10 letters, since I was squeezing into an actual number, which, according to my experiments, have about 55 bits of accuracy). Thanks, Lilifant7253!! One thing I've noticed is that if you play, then let it sit for awhile, then start playing again, the cloud variables sometimes don't get updated. A workaround is to re-load the game. I made a stripped-down version of this game - "Top Scores - stripped down" - http://scratch.mit.edu/projects/12858313 All the bells and whistles are stripped out, to make it easier for someone to use the parts in their own game.