So in my game, I have dev products, these dev products will give your currency. In my first dev product it will give 100K currency, but when I test it, it gives 100. Can anybody solve this issue?
Script(Normal Script)
local mps = game:GetService("MarketplaceService")
local id = 455366694
local amountGiven = 100,000
mps.ProcessReceipt = function(receiptInfo)
for i,player in pairs(game.Players:GetPlayers()) do
if player.UserId == receiptInfo.PlayerId then
if receiptInfo.ProductId == id then
local leaderstats = player:WaitForChild('leaderstats')
if leaderstats then
local boost = leaderstats:WaitForChild('Boost')
if boost then
print(boost.Value)
print(amountGiven)
print(boost.Value + amountGiven)
boost.Value = boost.Value + amountGiven
end
end
end
end
end
end

1 comment
Dont put a "," instead use just 0's (100000) (line 3)