Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I make a money subtracting script (Citation) ?

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?

1 comment

0

use tonumber()

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.