Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I save parts in datastore?

So for example, I have a building system. I don't know how to save these to the cloud. Could someone please explain how to use datastores for this?

1 comment

0

you actually can't, bloxburg probably saves values and positions for the objects, you can't save objects

1 answer

Datastores will only allow you to save simple values like numbers, bools, and strings. Since they cannot save complex values like a BasePart, we extract all the properties we need to remember from the part and save them into arrays of stings/numbers. When loading a saved building, we take the array of properties received from the datastore and put them into objects. This process is called "Serialization" and you can learn more about it here:

https://devforum.roblox.com/t/how-to-save-parts-and-the-idea-of-serialization/524311/3

This discussion is preserved as it was. New answers, comments, and votes are closed.