I have this script inside a part that is supposed to give you 5 coins every time you touched it, which works well enough, but when I set my coins to a different number, say, it was at 30, and I set it to 14, when I pressed the part again it would add 5 to my old value of 30 for some reason, can anybody point out why this script doesn't work?
script.Parent.MouseClick:Connect(function(player)
local coins = player.leaderstats.coins
coins.Value = coins.Value + 5
end)
