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

Dev products not working? (ProcessReceipt doesnt do anything) [**NOT**-SOLVED]

Asked by 5 years ago
Edited 5 years ago

I legit copy and pasted from the roblox website (and watched tuts) but it doesnt work and i have no clue whats wrong!

script (in server side)

local MarketplaceService = game:GetService("MarketplaceService")

local function processReceipt(receiptInfo)

    local player = game:GetService("Players"):GetPlayerByUserId(receiptInfo.PlayerId)
    if not player then
        return Enum.ProductPurchaseDecision.NotProcessedYet
    end

    print(receiptInfo.PlayerId .. " just bought " .. receiptInfo.ProductId)

    return Enum.ProductPurchaseDecision.PurchaseGranted
end

MarketplaceService.ProcessReceipt = processReceipt

local script:

script.Parent.SkipLevelsFrame["skip 1"].MouseButton1Down:Connect(function(promptpurchase)
    print("skip 1")
    MarketplaceService:PromptProductPurchase(game.Players.LocalPlayer, skip1id)
end)

when ppl purchase it "skip 1" is printed but the print(receiptInfo.PlayerId .. " just bought " .. receiptInfo.ProductId) never gets printed? any help will be taken!! (im probs just doing something dumn tho but cant see it)

the only type of "error" im getting is: 20:09:15.711 - DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = player_1058817329_product_0000000

1 answer

Log in to vote
0
Answered by 5 years ago

You have a ` at the start and the end of the print statement.

0
that was just a copying issue it is **not** in the actualy script i will fix it NubScripters 126 — 5y
0
oh ok popu2004 42 — 5y
Ad

Answer this question