I want the tycoon to save if someone makes a whole factory or something
You can use the DataStoreService.
Somebody has already created this:
https://www.roblox.com/library/4865917965/Zeds-Tycoon-Save-Version-3-3-0
ik how to save data for like coins but not buildings
But will this work with their tycoon? This may break something.
You can just save for example the values that determine the state of the building. Then when player joins get these values and load buildings.
i would need to save atleast 50 values due to the amount of upgrades
If you store them in the table it wouldn’t be that bad.
Maybe something like this
local states = {
['playeruserId'] = {
['wall'] = 1,
['roof'] = 3,
}
}
And then save them in a datastore
what do you mean by 1 or 3 for the wall and roof
The roof would have for example 3 upgrades aka. states and the number will describe which upgrade/state it is currently at.
Rather have individual upgrades(items in the table) and save a bool value which indicates whether the user has bought it before or not.
Oh, right. That would be much easier.