How to make a dev product raise your in-game cash and save it

G’day

I have a GUI for purchasing in-game credits and currently you can click it and buy it but I don’t know how to get it to update the leaderstats and save it.

I don’t know how to get the game to insert the in-game credits purchased.

I have used google, the dev forum and even the toolbox and can’t find anything on it.

thanks,

1 Like

Let me know if it is in the wrong category.
thanks,

1 Like

From what I can tell, this is supposed to be in #help-and-feedback:scripting-support, what you have to do for the dev product to raise the value is to use ProcessReceipt, which is a property of MarketplaceService that can be given a callback function that runs whenever you buy a developer product. I recommend you read up on it as even the article has an example similar to what you want to do about increasing the currency given

1 Like

That actually works :slight_smile:

Anytime! If you have anymore issues don’t be afraid to make another post!