Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you go on storing data for a house?

Asked by 5 years ago

I have been thinking about this a lot and reading many articles but I still seem to not understand how to store data, for example, a house. Would I create a new data store for every player that joins my game, and just reference that data store with the player ID to get all of the objects inside of the house, or create one giant data store that has the information of all of the houses and objects and then look for the playerID and place every value that contains the player ID?

0
All you need to do is create a single datastore that saves to the player's user id. When they join onto the game again just use that id to retrieve the data back. zblox164 531 — 5y
0
But that is if I want to have a datastore with some single value such as experience and level. But I am asking like for a house where you need each object to be saved and you have around 200 of them. Wouldn't it be so much easier to create a new one for each player that joins and then put all of the objects inside of the house, and then just go through all of the slots in the data and place them? greenhamster1 180 — 5y
0
But that is if I want to have a datastore with some single value such as experience and level. But I am asking like for a house where you need each object to be saved and you have around 200 of them. Wouldn't it be so much easier to create a new one for each player that joins and then put all of the objects inside of the house, and then just go through all of the slots in the data and place them? greenhamster1 180 — 5y

Answer this question