How would I go about making a donation leaderboard on a gui?

Hi, I have got a ‘support’ button that when clicked on, opens a frame with donation buttons which are working, however, I also wish to add a global leaderboard of who has donated the most onto that gui. How would I do this?

Donation Gui

I just have a local script under each button with this script:

local id = 11397896147

script.Parent.MouseButton1Click:Connect(function()
	game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, id)
end)

Thank you very much for any help!

2 Likes

Store the amount the donated in a data store, then use the datastoreservice function

game:GetService("DataStoreService"):GetOrderedDatastore(PUT_NAME_HERE)

You can read more about this fucntion on it’s doccumentation

3 Likes