How can i save GUI objects with DataStores?

I’ve tryed stuff like this and tryed to chage it so it works with GUI objects but it wont work.

What do you mean by save GuiObjects and why would you need to do so?

i have a “programm” in which the player can make Gui stuff like a Cookie Clicker and i want to save the diffrent Gui elements/objects so the player can work on it later

Could you show a demonstration of how the game should work for more info please?

wdym, the game is done i just need to figure out how i can save the stuff the player creates (the gui elements/objects)

Technically you don’t need to change anything. Just serialize and deserialize the CFrames…

if i dont change anything try it it gives me this error: invalid argument #1 to ‘pairs’ (table expected, got nil)
image


You probably forgot about this. You need to add here the properties of GUI objects.

If you don’t need any other properties, just add

TextLabel = { "CFrame" },
Frame = { "CFrame" },
TextButton = { "CFrame" }
etc
1 Like

Yes i forgot about that and i added more properties

Just a sidenote if i add CFrame it sais: CFrame is not a valid member of Frame