I am trying to make a system where the leaderboard is saved from MemoryStoreService’s HashMap to my DataStore when all the server instances are shut down.
Ive successfully implemented the saving system but I am having problems while loading up the leaderboard.
In the datastore, the stat of each player is represented by a numerical value and is saved with the player’s UserId as the key and the stat as the value. I need an approach where I can retrieve each saved key and its data. How can I do that?