If you withdraw more money than your ATM holds, then you should withdraw all the money in it. Maybe code would help more. Something like:if withdrawAmmount > balance then withdrawAmmount = balance end
Could use a math.Clamp(withdraw, 0, balance) but yes, this sounds like a good idea.While we're still on the ATM topic, I struggle to see how it's possible to deposit into an ATM. Possibly we could have an NPC at the bank to do this?