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
You have a ` at the start and the end of the print statement.