I'm currently trying to make a developer product. I'm using the wiki, and so far, I understand everything except for a single line. The line I'm confused about is as follows:
MarketplaceService.ProcessReceipt = function(receiptInfo)
The entire script is as follows:
local MarketplaceService = Game:GetService("MarketplaceService")
MarketplaceService.ProcessReceipt = function(receiptInfo)
game.Workspace.DisplayScreen.SurfaceGui.TextBox.Text = receiptInfo.PlayerId .. " just bought " .. receiptInfo.ProductId
-- ...
-- use DataStore to record purchase
-- ...
return Enum.ProductPurchaseDecision.PurchaseGranted
end
This is the first time I've ever seen anything like this. Can someone dissect this line for me, bit by bit?

1 comment
I've already read the wiki. Copying and pasting directly from the wiki will not help me at all. Just to clarify, I only need help with that single line.