local MarketplaceService = game:GetService("MarketplaceService")
local players = game:GetService("Players")
local function processReceipt(receiptInfo)
local player = players:GetPlayerByUserId(receiptInfo.PlayerId)
local productId = receiptInfo.ProductId
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if productId == 970585872 then
local FindPlayer = game.Players:FindFirstChild(player.Name)
local Bucks = player.leaderstats.Bucks
if Bucks then
Bucks.Value = Bucks.Value + 100
end
elseif productId == 970585931 then
local FindPlayer = game.Players:FindFirstChild(player.Name)
local Bucks = player.leaderstats.Bucks
if Bucks then
Bucks.Value = Bucks.Value + 500
end
elseif productId == 970585980 then
local FindPlayer = game.Players:FindFirstChild(player.Name)
local Bucks = player.leaderstats.Bucks
if Bucks then
Bucks.Value = Bucks.Value + 1000
end
elseif productId == 970585980 then
local FindPlayer = game.Players:FindFirstChild(player.Name)
local Bucks = player.leaderstats.Bucks
if Bucks then
Bucks.Value = Bucks.Value + 1000
end
elseif productId == 970586164 then
local FindPlayer = game.Players:FindFirstChild(player.Name)
local Bucks = player.leaderstats.Bucks
if Bucks then
Bucks.Value = Bucks.Value + 2500
end
elseif productId == 970586212 then
local FindPlayer = game.Players:FindFirstChild(player.Name)
local Bucks = player.leaderstats.Bucks
if Bucks then
Bucks.Value = Bucks.Value + 5000
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
MarketplaceService.ProcessReceipt = processReceipt
COMMUNITY QUESTION
My developer product handler doesnt give the player any bucks when the product is bought?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
no errors btw