How to give player money when they bought dev product

Hey there!

I need help on how I could make a script that gives the player the amount of money they’ve bought. Could anyone show me how I would do it?

Create a leaderstats money, then, make it so that when devproduct is purchased leaderstats value ‘money’ is increased. You could research on how to do this.

I’ve already got leaderstats. Could you tell me how I could do a script that does something (my choice) when the player have bought a dev product? Like a short script.

Can I see your leaderstats script?

Oh sorry, i’m not on my pc rn. I can’t really send it. But basically it’s just a normal leaderstats script and the stats is named “Bucks”

I’ve made a post about that before you can see it here: How to confirm a purchase on a developer product - #6 by AtomTostcuOzgurUsta

Instead of printing “Success” you can just increase the money value from the leaderstats. If you have any questions about it let me know.

1 Like

I would also strongly advise you to have a look at this article. It explains how to use Developer products, and has an example, which if modified, will do what you want to do.

1 Like