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

How can I save a "Model" Built by a player and loaded in different places ingame?

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?

2 answers

✓ Accepted answer

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 :)

https://www.roblox.com/library/633336146/Model-Save-Script

1 comment

0

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

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