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

How do you store instances in datastore?

Asked by 5 years ago
Edited 5 years ago

I'm trying to figure out how to store a instance in a datastore, and I have no idea how to, I know I need to put it in a table with all the instances properties, but how do I implement those values in a table for datastore? And how do I then put the saved values back into the instance I saved when a player loads in? Sorry if this sounds more like a request. I just need an idea how to do this.

1 answer

Log in to vote
0
Answered by 5 years ago

You cannot store an instance in a datastore. You can either save the name of the instance and all of its properties' numbers or you can save a value that you have associated with that instance and if that value is in the datastore to load that instance. However, you can never save an actual instance in a datastore.

Ad

Answer this question