So what I have is a money script, then I want the money to be subtracted according to what numbers (money) was typed into a text box. So then after another text button is clicked the amount of money written in the text box will be subtracted from the player's money. So it's basically a citation script. How would I do that?
COMMUNITY QUESTION
How would I make a money subtracting script (Citation) ?
1 answer
Well, i found how to do it
text = [YOUR TEXTBOX HERE]
value = [SOMEWHERE WHERE YOU HOLD YOUR MONEY VALUE THING]
answer = tonumber(text.Text) - value.Value
2 comments
0
just if you are using text label instead, use tonumber for it too
0
the answer should be reversed
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
use tonumber()