You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I want a button pressed it comes up with a developer product, and then when bought it gives coins to the player. **PLEASE NOTE THE COINS ARE IN A FOLDER CALLED MAINDATA NOT IN LEADERSTATS **
-
What is the issue? The developer product will work with leaderstats values, but not with anything inside of the maindata.
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub? Yes, I found nothing.
I will not be taking credit for this code. All rights go to https://create.roblox.com/marketplace/asset/12750962193/PurchaseLib this. The developer told me to use it. Please credit them if you use it.
That is what I am using, so if you can, PLEASE HELP! Thank you!