I was making the sword shop. Then when I spammed the button. I went into the negative coins. I set up a conditional but it seemed to work.
if game.Players:FindFirstChild(player.Name).leaderstats.Coins.Value >= 2000 then --do stuff end
I am on mobile so this was from Memory. The coin subtraction is fine. Going into negatives isn't.

1 comment
There's nothing wrong with that line, as far as I can tell. Make sure everything that you meant to be is in "do stuff".