How exactly would you save progress on a game like a tycoon?

Ever since I started playing tycoons with a lot of things you can unlock (as well as being a developer during this time), I’ve always wondered how they managed to save the data. One tycoon I played seemed to store the data in a table, since I went into the F9 menu on a tycoon once and I saw all these tables with names of things you can buy and stuff like that. I’m not thinking of making a tycoon, but how exactly would one create a data saving function in a tycoon game? And what is the most efficient way?

serializing the data, essentially the table method u mentioned earlier, you would save the names of things players purchased to the datastore in a table and then when the player rejoins you would go through that table to give them all the things in it

1 Like

It can be as simple as a list of strings naming the items which have been unlocked. You can turn any non-cyclic non-mixed-index (either numbers of strings as keys but not both) into a string using JsonEncode() and save it in a data store.