+100 gems
local MarketplaceService = game:GetService("MarketplaceService")
local plrs = game:GetService("Players")
local gem500 = 985556504
local function processReceipt2(recieptInfo)
local plr = plrs:GetPlayerByUserId(recieptInfo.PlayerId)
if not plr then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if plr then
plr.Gems.Value = plr.Gems.Value + 500
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
MarketplaceService.ProcessReceipt = processReceipt2
+500 gems
local MarketplaceService = game:GetService("MarketplaceService")
local plrs = game:GetService("Players")
local gem500 = 985556504
local function processReceipt2(recieptInfo)
local plr = plrs:GetPlayerByUserId(recieptInfo.PlayerId)
if not plr then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if plr then
plr.Gems.Value = plr.Gems.Value + 500
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
MarketplaceService.ProcessReceipt = processReceipt2
everything else works just fine, the buttons promt the right item but idk why it only gives 500

3 comments
you just posted two identical scripts
Because both the scripts are adding 500 gems
oh no that was an accident.