I've made a GUI where you can purchase coins, and it has multiple choices for the number of coins you want to buy and when the user picks the one he wants, let's say 500 coins, it will cost 10r$, I have that part down, but I cannot figure out how to process the transaction by adding 500 coins.
The script prompting the purchase:
local MPS = game:GetService("MarketplaceService")
local PL = game:GetService("Players")
local player = PL.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
MPS:PromptProductPurchase(player, 429634850)
end)

2 comments
Do you put the give coin script where it says print???
No, it is on line 17. Line 14 is useless, so you can delete that line. I put print for test