Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to use PromptPurchaseFinished?

Asked by 7 years ago

I need to print when product is purchased; the problem is that the function does not even print.

~~~~~~~~~~~~~~~~~ MarketService.MarketService.PromptPurchaseFinished:connect(function(c, a, isPurchased) print(c,a,isPurchased) if isPurchased then table.insert(server.que,server.eventInst:InvokeClient(c,'get_id'))

    server.eventInst:InvokeClient(c,'clear_id')
    server.eventInst:InvokeClient(c,'change_desc','- Successful -')
else
    server.eventInst:InvokeClient(c,'change_desc','- ERROR -')
end

end)(function(c, a, isPurchased) print(c,a,isPurchased) if isPurchased then -- DO STUFF HERE else -- DO STUFF HERE end end) ~~~~~~~~~~~~~~~~

0
Called on the server Sen_Takatsuki 15 — 7y

Answer this question