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

I Have A Problem, How Do I Save Models Through DataStoreService?

Asked by 5 years ago

If Anyone Knows How Please Answer!

0
You can't. The best way to do it is to save certain things that are unique to the model like its position of a primary part, the model name, stuff like that, in values stored in a table as the data ScrubSadmir 200 — 5y
0
it is like just for players making custom builds mkhamster 58 — 5y
0
I know a way that is better than the current answer, I just have to wait for the answer cooldown, just a sec... ben0h555 417 — 5y

2 answers

Log in to vote
0
Answered by
ben0h555 417 Moderation Voter
5 years ago

If you want a simplistic, easy way to store a model, then you need to create a "Model to Script" script, it is a script that can turn a model into a string that can be put in a script for a perfect copy, then you need to store it via DataStoreService, then, when trying to call in the model you use loadstring to create the copy, however if the model has scripts you must make a advanced model to loadstring that takes copies of that script that you store in replicated storage and puts it in the place the script was.

0
thanks man! mkhamster 58 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

You need to know about serialization, and you need to learn about JSON encoding/decoding.

I don't think there currently is any free serialization module...

Answer this question