I tried all I could do for scripting a datastore shop, I’ve seen in simulators datastore shops for example: I join in a simulator and I see a button named Buy I press it then it shows the text owned and I leave the game, when I rejoin it says owned. I name it “DataStoreShop” each help is apprieciated!
You could make a module that returns a table of the stuff that are available to buy and change its value to owned when the player purchases it then save said data.
You can require this whilst loading data use a remote function that returns the table to the client to update the changes, There might be a better method but I just made this up on the spot.
there isn’t a trick, the process of saving data is the same, save what you need to save when the player leaves and when he joins back you check his data