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

Why won't this Dev Product work?

Asked by 10 years ago
local plr = script.Parent.Parent.Parent.Parent.Parent
local link = game:GetService("MarketplaceService")
deb = 0

script.Parent.MouseButton1Click:connect(function()
    local marketId = 20859896
    link:PromptProductPurchase(plr,marketId)
    link.ProcessReceipt = function(receiptInfo)
        if Enum.ProductPurchaseDecision.PurchaseGranted and receiptInfo.PlayerId == plr.userId then
            if deb == 0 then
                deb = 1
                plr.Points.Value = plr.Points.Value + 10
                wait(1)
                deb = 0
            end
        end
    end
end)

I have checked the product id and everything. its in a serverscript inside a TextButton. It should work but isnt.Please help.

0
Are you testing in a real ROBLOX server? You can't test this stuff in Play Solo or a local test server. Tkdriverx 514 — 10y
0
i am testing in real server, im not an idiot NinjoOnline 1146 — 10y

Answer this question