TZH on Nostr: local MPS = game:GetService("MarketplaceService") MPS.ProcessReceipt = ...
local MPS = game:GetService("MarketplaceService")
MPS.ProcessReceipt = function(receiptInfo)
if receiptInfo.ProductId == 0000000 then
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + X
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
Published at
2023-02-06 20:09:49Event JSON
{
"id": "eb564f8edc0e8ef89d417b96b68d5cd33b347a8a19bffac6c2e1cc6193cc0b76",
"pubkey": "cc7a67745452c600257b3214c78d559d5ef671a9b274827c4bd9ebd7538b8f51",
"created_at": 1675714189,
"kind": 1,
"tags": [],
"content": "local MPS = game:GetService(\"MarketplaceService\")\n\nMPS.ProcessReceipt = function(receiptInfo)\n\tif receiptInfo.ProductId == 0000000 then \n\t\tlocal player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)\n\t\tplayer.leaderstats.Coins.Value = player.leaderstats.Coins.Value + X\n\t\treturn Enum.ProductPurchaseDecision.PurchaseGranted\n\tend\nend",
"sig": "b99c48575e196dfaad49ee2a69f418448719b0aafca5d3ed1d78c41b8a6d48d05bf45abd2f041d8b994fab8189016ef09535035286ebfab8e9d4a782343dcd4c"
}