How do i make a top donator gui?

I wanna make a top donator gui like this, but it will show only 1st person. (ImageLabel is for donator’s avatar)
gui
Am i have to use data store?
I created developer products but i dont know how do i get top donator. Can someone help?

1 Like

Basically OrderedDataStore | Documentation - Roblox Creator Hub. You use that to save donations and then later on get the top most donation and apply.

1 Like

well how do i get the player who most donated?

2 Likes

Personally what I do I use GetSortedAsync to get pages of the data and then go through that list and put the info on a surface gui using a premade template.

For that you do:

Lets say you have made the datastore. You need to get the page by doing:

local DataStore = DataStoreService:GetOrderedDataStore("Donations")
local TopDonator) = DataStore:GetSortedAsync(true,1):GetCurrentPage()
print(TopDonator) -- Should print the top most donator with user id as key and donated robux as value.