How to save model of parts using tables(Data store)

I’m creating roblox game with trains, and i making custom train system(you can build your custom train), and i need a help with my problem. I need save a model of parts using datastore, but i don’t know how do it.

If you can send a script or answer, send please! (Sorry about my english)

1 Like

Hi there!

Personally I’d rather just send you an answer to at least give you a direction where to go or how to approach this rather than just spoon-feed you a script and call it a day so hope you don’t mind.

Anyways with regards to your question it should most definitely be possible. It is however important to note that saving part instances isn’t directly possible, rather you would have to store/save the properties of said part such as its position, orientation, size, color, etc. It would be up to you then how you would choose to organize or proceed with storing each part’s data.

I would highly recommend reading this as this could help a lot with regards to what you’re trying to figure out. How to save parts, and the idea of Serialization

Thanks! But you say i can save a part only using proporties, then i need create a table of part proporties, and how i can write a script, when proporties inserting to table, and when need load a part create a part using table?

What you asked right now, it’s all addressed in the link that I sent above. I would suggest take some time to read it first. It might be a lot of information glancing over it but the things pointed out there as well as on the comments of the post really help breakdown that process step by step. Thx!

1 Like