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

How do I fix this part of my dev product..?

Asked by
PWNTART 33
9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

I have the part that prompts you in the textbutton where it should be but now this wont work. I need help fixing or if its not broken could someone tell me where it should be

local productId = 24735683
local MarketplaceService = game:GetService("MarketplaceService")

MarketplaceService.ProcessReceipt = function(receiptInfo)
player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
        if player.userId == receiptInfo.PlayerId then
     if receiptInfo.ProductId == productId then
    player.PlayerGui.Money.MonV.Value = player.PlayerGui.Money.MonV.Value + 500
            end
        end
    end

    return Enum.ProductPurchaseDecision.PurchaseGranted    
end

Answer this question