I’m trying to make a shop system that uses in-game currency to purchase tools and, I need to add a one-time purchase feature.
And no, this is not the thing where if the player already has the tool in their backpack they can’t buy it again, I already implemented that feature, I want it so once the player purchases the tool, the tool will be purchased for them forever, even upon losing the tool they can get it back without paying for it again.
For example:
I have a rubber duck tool added in my shop and the player is able to buy the tool for 25 cash. The player purchases the duck and leaves the game, losing the tool because it has not saved. When player joins back in the game, they can go back to where they purchased the duck from and just grab it again, without paying for it again.
The problem is that I do not have any idea on how to make it. I know that I need datastores for it but I don’t know how those really work either.
If anybody has any idea on how I could make this in my game, I’d really appreciate some help.