Ok so I have a building feature on my game, but I want the player to be able to save the Object they built, and be able to load it into different Places...My question is how should I go about doing this? Should I do something with Datastores or is there a simpler way to do this?
How can I save a "Model" Built by a player and loaded in different places ingame?
2 answers
According to the wiki, it is impossible to save Instances such as a model through datastore. It recommends converting the Instances to tables. I think what it means by this is to loop through every part in the model and create a complex nested dictionary of part properties. Then when you load that data, you can look through the properties and create the exact parts, even maintaining the hierarchy. It is difficult, but is equivalent to saving the model. If you are skilled with tables and loops then you can do it. I'll update with a working script if I can.
EDIT: Here you go man. I spent way too much time on it, but it's a learning experience and something I might need in the future :)
not exactly sure, i believe there are datasave tutorials on Alvin BLOX's channel and i find him very helpful as a scripter
here is the link
https://www.youtube.com/watch?v=tOOS9lMIYes
or you can just search Alvin BLOX DataSaveTutorial
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Oh wow thanks that helps a whole lot, it will take a lot of modifying to work with my other scripts but thanks!