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

How Do You Save Unknown Objects Using Data Stores?

I am scripting an RPG game that my friends are making and I made the inventory system and quest system, but I don't know how I would save the individual quest folder, tools, and their contents if I don't exactly know what they are at a given time. How would I save them using data stores?

1 answer

Serialize

Using a combination of GetChildren and an understanding of your structure, you should be able to store everything into tables. You won't be able to store the actual Instances however, so what you'll have to do instead is save something which your game understands that describes the item you're trying to save.

Saving the item name and its stats are always a good start.

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