Developer products not working?!

So, I don´t know why but this simple code, made to test developer products won´t work, what´s going on?

local MarketplaceService = game:GetService("MarketplaceService")

function processReceipt(receiptInfo)
	warn("SOMETHING")
end

MarketplaceService.ProcessReceipt = processReceipt

Is it a client or server script? Where is the script located?
If you try this code, what does it print?

local MarketplaceService = game:GetService("MarketplaceService")

local function processReceipt(receiptInfo)
	warn("SOMETHING") -- does this warn?
end

print("Running") -- does this print?

MarketplaceService.ProcessReceipt = processReceipt

Only the print(“running”) works, I´m getting confused

So it had something to do with the localscript, I haven´t figure out what exactly thought, I rewrited the entire script and now it´s fixed.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.