How do i do datastore on a GUI?

Hello, i need help making data store for my GUI’s, because the game is gonna have a lot of features, and the game im working on is ONLY gui. The game is called Image Clicking Simulator, and my issue is that i dont know how to do datastore on GUI’s. This is the game inside:

The game has many images (8 for now). I know how to make leaderstats save but not textlabels.

Also forgot to tell, i’m a beginner scripter so i may not understand very much

2 Likes

You can’t save instances to a datastore. Instead, you can save things like the text, image link, and click count, and then create a new textlabel with those properties when you load the data.

Oh ok, thanks for the info! I just didnt know because i’m a beginner scripter.

Also can i make something like a “Current Image” leaderstat? so if the upgrade is successful, and the image upgrade to level 2 and the leaderstat changes, so i can make it save and the image will be the same as before!

Sure, try it and keep it if it works for you!