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

Data Stores - Instances?

Asked by 10 years ago

So I'm making a better version of Build a Hide out and fight and I'm making a save system with Data Persistence and test it by building a castle. I made foundations for it and saved it and tested it and it worked. I finished my castle and it said it was too big to save. So I thought of data stores since they have no data limit. But I'm not quite sure how to save a whole model with Data Stores. All I know is how to save integers, strings, and booleans.

1 answer

Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

You can't directly save Instances to a DataStore.

To save data that can be used to to "rebuild" the creation later, you have to do something called serializing the data. There are multiple scripts already made to do this, and a few I think are on Free Models.

I'm currently on mobile, making it difficult to write out code, so I'll write a serializer and deserializer pair of functions and add them to this post when I get home from work (About 6 hours from now).

0
Alright. Thanks in advance! lightpower26 399 — 10y
0
Not to be rude or anything, but it's been 23 hours. Can you do it now? lightpower26 399 — 10y
0
Oh gosh, I'm sorry. I forgot while I was at work. adark 5487 — 10y
0
It's alright. You can Message me the serialize code thing on Roblox lightpower26 399 — 10y
Ad

Answer this question