How do I save my data?

So I’m making a tycoon game, and I’m curious about how I should save my data. Should I save all aspects that I want to be separate, so it’s easy to create global leaderboards for my game, or make them all stats in one table, and create my own way to sort from best to worst from there, which I believe would take a lot of work, maybe there’s a way to do that already though.

How do you make your games?
  • 1 save for players
  • 1 save per stat you want to display

0 voters

What do you recommend I do?
  • 1 store place
  • 1 for each

0 voters

Tables would be the better option, using more than 1 datastore per player will cause datastores to lag, and cause data loss.

I would prefer that as well, but my only problem was doing something like ordered data stores. Do you know a good way to do that? As far as I know, ordered data stores only function correctly if you have one number value in them.

You have a datastore for player data, and 1 for leaderboards. You save the ordered data store with the value you want to be on the leaderboard.

Hey, sorry for responding a long time after this. I’m looking to have multiple values be in the global leaderboards, which is why I believe tables wouldn’t work in the way you’re saying here. I believe that if I was to do something like this, I might as well get from different datastores for each value. Does that sound correct, or did I not understand you correctly?

You can make multiple OrderedDataStores, each for its own value. And then have 1 GlobalDataStore with your players data, all in a table.