local function promptPurchase(plr)
MarketplaceService:PromptProductPurchase(plr, productID)
end
clicker.MouseClick:Connect(promptPurchase)
The script above just activates the developer product purchase screen, but once they've made the purchase is there a certain line of code I can put in to know they've paid? Currently all this code does is activate the developer product purchase screen.
CurrencyToCollectt.Value = CurrencyToCollectt.Value + 100 --Amount added
I want to insert that code into the next function so after the purchased has been completed they'll receive what they paid for [ Code above ]. It's just giving them 100 Cash.
I've looked at the wiki and I'm assuming I just don't understand? It explains handling receipts, but I'm not sure if that'll help me confirm the purchase went through or not and if I can give them what they paid.
