How to implement leaderboards

I have a game with a coin system, and I want to make it into a leaderboard so people can compete. I created the board and the coins but I cant figure out how to implement it into the the script. Please help, thanks.

Are you looking for Roblox’s built in leaderboard or are you trying to create a custom one?

custom global one. It would be nice if it shows offline people

DataStoreService.

Hey, so you were unclear about what you were asking, are you looking for a custom global leaderboard where it shows the top earners or players or something like that?

In that case, OrderedDataStore is what you will have to use. A tutorial can be found here. It can only save/load positive integers so it is perfect if you want to show those with the most coins for example.

how do i turn this into a leaderboard?