How Would I Make A Robux Leaderboard?

Hello developers!

For my new game, I am making I want to have a leaderboard where it displays the top 10 people that have spent the most Robux on the game. I am fairly new to scripting so any videos or articles would help a lot (or describe as best as you can). Any models are appreciated!

image

2 Likes

what you could do is store how much robux they spent on your game and make a leaderboard with those values

From what I know, here are some tips for your project.

If you have any game passes, list all the game passes down with the prices in a script, then get the Robux amount and calculate all the game passes they’ve bought to a single digit.

If their a developer product use Datastores and then plus the price in the datastore and then add it with the game passes value and post it on a Leaderboard

If you need any assistance with the board you have taken a picture of instead of the board on the tab menu watch this Tutorial on YouTube

2 Likes

In the video it makes a wins leaderstat and puts it into the board. How would I make it robux instead of leaderstats or do I have to make the robux a leaderstat?

On the server, you would have an Ordered Datastore tracking each player’s total robux spent.

Each MarketplaceService purchase event listener would increment the player’s total spent robux.

Every X amount of seconds/minutes, you would call :GetSortedAsync(false, 10), loop through the first page, and display it on a leaderboard.

The leaderboard should just have a UIListLayout, where you add the 10 frames into it. You could also have it in a Scrolling Frame

1 Like

Hello, I know the topic is from ages ago, but how to do that?

1 Like