Saving multiple elements into DataStore

Hello! I want to save this in a database (I’m actually using DataStore):
image

Note: Each Frame represents a face of a cube, and within each one, there are multiple ImageLabel elements depicted as Dots. The thing is that I want to save all of this in the database (all the frames and their children).

The problem I have is that I don’t even know how to figure it out. I mean, is there any way to do this? Or perhaps combine all those Dots within each frame and then just save an Image with their data instead of eeeverything (because yes, I just need the final image of each individual Dot).

You can solve ur problem with a simple encoder and decoder with tables.

What i mean is:

If you have a frame that is blue and have 100x100 size and is on 1300, 500 position you can make a table with that info, just like this:

{
Size = { x = 100, y = 100 };
Position = { x = 1300, y = 500 };
Color = { R = 0, G = 0, B = 255 };
}

I hope that this helped!

Hey. You can try and do the thing @Rodigooz said, but it’s complicated. I would instead save the names of the image labels or something about them that makes them unique, and then cloned an already existing image label. Edit it for the unique dataset and thats it.

I did this for parts but I just gave every item an attribute called UUID which basically was a number which would separate from the others. Then I would make a table of all the properties I need in it with parent property being the UUID of it. Then I could save that and load it in