This double "coins" script works, but it gives 7x the amount of "coins" intended, so instead of giving 1 extra it gices 7. Is there any way I could make it just give 2?
local MS = game:GetService("MarketplaceService")
local VIPID = 8110615
local RS = game:GetService("ReplicatedStorage")
game.Players.PlayerAdded:Connect(function(plr)
if MS:UserOwnsGamePassAsync(plr.UserId,VIPID) then
plr:WaitForChild("leaderstats"):WaitForChild("Potatoes").Changed:Connect(function()
plr.leaderstats.Potatoes.Value = plr.leaderstats.Potatoes.Value + 1
end)
end
end)

2 comments
Thank you, but if I use this script it will multiply their value which is not what I want. e.g if their value is 70, when they gain a coin their value will be 142, instead I am aiming to make it: if their value == 70 then they gain a coin their value would equal 72. Thanks for the answer though!
I have edited my answer.