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

Can you save items in Data Store??

Asked by
zasnq 0
6 years ago

So, for a building game, I want it to save what ever one has built when they leave or lose connection. However, as far as I know, data stores only save values and the wiki says that I cannot save parts in Data Store.

Still, is there any possible way to make the parts go under data store?

If no, then what else can I do?

2 answers

Log in to vote
0
Answered by 6 years ago

Answer: Nope

You cannot. The best way to do it is to use tables, still, it isn't easy, also make sure that the player can only build on a certain area and it unloads when he leaves because it can be weird if you don't.

0
Sorry for the short answer but there isn't much to say about this User#20388 0 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

You would save what the parts represent.

Say you have a "wall" You would save in your table myTable[part1] = "wall" It's up to you as the programmer to read from that table and create the part. You'll also save things like how big the wall is, what color the wall is and so on.

Answer this question