Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

2 comments

0

that was just a copying issue it is not in the actualy script i will fix it

0

oh ok

This discussion is preserved as it was. New answers, comments, and votes are closed.