This is supposed to be giving 25 Gems but it is somehow giving sometimes even 500 gems?? What could the problem be?
This is in the serverscriptservice
stat = "Gems"
award = 25
------------------------------------------------------------------------------------------
MarketplaceService = Game:GetService("MarketplaceService")
MarketplaceService.ProcessReceipt = function(receiptInfo)
players = game.Players:GetPlayers()
for i=1,#players do
if players[i].userId == receiptInfo.PlayerId then
players[i].ds[stat].Value = players[i].ds[stat].Value+award
end
wait(1)
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
This is in the Gui button
local productId = 25264216 -- Change to the ID of your developer product.
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
end)

1 comment
Still gave me 500 :(