Cannot store array in data?

So, i made a data store script… i have a folder called Inventory, next i store the things in that data store using a table, i tried to store that folder into the table using example: “table.insert(save, game.Players.Inventory:GetChildren())” and the pcall says “Cannot store array in data”? How could i possibly fix this? Thanks in advance!!

you cant save instances. you will need to convert them to string

3 Likes

How though? Can you please give me an example?
Sorry about that btw, im really new to coding and trying to learn Data Stores :smiley:

you can save the name of the item then when you load in, you have a dictionary of items that then get cloned.

1 Like

Alright!! Thanks so much for taking the time to reply to me!!

1 Like