local mServ = game:GetService("MarketplaceService")
local empoint100 = 266986370
local empoint1000 = 266985735
local empoint10000 = 266986634
local empoint2000 = 266985880
local empoint3000 = 266986118
local empoint5000 = 266986765
mServ.ProcessReceipt = function(receiptInfo)
for i, player in ipairs(game.Players:GetChildren()) do
if player.userId == receiptInfo.PlayerId then
if receiptInfo.ProductId == empoint100 then
player.leaderstats.EmPoints.Value = player.leaderstats.EmPoints.Value + 100
elseif receiptInfo.ProductId == empoint1000 then
player.leaderstats.EmPoints.Value = player.leaderstats.EmPoints.Value + 1000
elseif receiptInfo.ProductId == empoint10000 then
player.leaderstats.EmPoints.Value = player.leaderstats.EmPoints.Value + 10000
elseif receiptInfo.ProductId == empoint2000 then
player.leaderstats.EmPoints.Value = player.leaderstats.EmPoints.Value + 2000
elseif receiptInfo.ProductId == empoint3000 then
player.leaderstats.EmPoints.Value = player.leaderstats.EmPoints.Value + 3000
elseif receiptInfo.ProductId == empoint5000 then
player.leaderstats.EmPoints.Value = player.leaderstats.EmPoints.Value + 5000
end
end
end
end
When I purchase 10,000 EmPoints for the first time it works, but the second and third time the amount it gives is increased by 10,000.
Any help would be appreciated, thanks!
