And I got most things working as I want them to however I have no idea how to save the cash and data. I used Zed’s Tycoon Kit as a starting place for my tycoon but now I can’t figure out how to save all the data and progress. I’ve tried using data stores, it saved the cash however not the progress and the cash could no longer be used in the next game session.
A starting point would be to assign a value to every object you can buy in the game, so like a dropper could be 1, conveyor walls would be 2, etc. Save those values and when they join the game, load those values and check them and if it says a value named “conveyorWalls” = 1, then load it. You can save this the same way you said you saved the cash.
If you don’t have any experience scripting, jumping straight to datastores after using a free model tycoon kit probably isn’t the best place to start. I’d reccomend that you go to the basics of scripting and try to make a lot of this tycoon on your own.
To save all of the buildings in your tycoon isn’t a very simple problem, and requires quite a bit of more advanced scripting logic.
My reccomendation if you really want to try saving all of the progress is this:
Create a base table when new tycoons are made of all the buyable models, and the index is the model name with the value being false. Whenever one of the models is bought, change that to true. Save this table into a datastore. Based on the models that are true, make those models exist in their tycoon, models that are false are buyable.