First off I'm making a money script. Example: 1$ 10¢ I'm wondering if I can subtract a value from two integers, allow me to explain. Example: A = 100 B = 10 Say I want to subtract 105 from A could I make A = 0 and subtract 5 from B to get the full value? Result: A = 0 B = 5
Would I need a load of "if" statements or what? Been racking my brain at this for a few days. I know I could probably use NumberValue but it doesn't seem very adaptable for future products that way.
Thank you for the support.

1 comment
I understand what you're asking, and it's very possible. You'll probably only need 2 if statements, however you have not shown real effort, only asking for a script.