Grab all of one variable in a data store?

I’ve got stored variables in my players under the datastore “score”. This datastore contains individual highscores for all different gamemodes. How can I grab all of the data for one of the values for EVERY player. Basically I’m trying to make a global leaderboard using each of these values. I’m still pretty new to using datastores so I don’t understand them super well.

This post should be able to help you.

You would have to fetch the values from your normal data store, and then save them to a ordered data store so they can be sorted into a leaderboard. If you want to know how to use that ordered data store to make a leaderboard, you can visit