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

Saving instances on Data Stores?

Asked by 5 years ago

Is there any way to save instances (for example, a map where players edited by adding buildings) in Data Stores currently?

0
I don't think there is, but what you can do is store in array in a DataStore with information on how the players changed the map. KinqAustinn 293 — 5y

1 answer

Log in to vote
1
Answered by
zblox164 531 Moderation Voter
5 years ago

You can save everything you need to create the instance such as size, position, class, and rotation. Save these values in a table. This is called Serialization. It's where you take an object and deconstruct it. When you need the instance again, you can use De-serialization to reconstruct it. You can not directly save instances but can save everything there is to know about it.

Ad

Answer this question