A basic leaderboard project that uses a separate cloud variable for each of the top 5 scores and stores the encoded username and their score. Click on Reset to put the list back to an initial state and click on Add to get a random score to add against your username.
Seems to work OK but as with any project using cloud variables it is dependent on getting a decent response from the cloud server.