|
| 08 Jul 2016 01:02 PM |
Using a script ofc
plis help
lapis4bob4life |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2016 01:03 PM |
| Convert the value of the StringValue to a number using the tonumber function and then do the math. |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2016 01:04 PM |
^ Sorry, I cant understand. I'm a noob at scripting
lapis4bob4life |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2016 01:05 PM |
You'll basically just have to do this.
local num = tonumber(StringValue.Value) print(5 - num) |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2016 01:50 PM |
doesnt work for me
lapis4bob4life |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2016 01:59 PM |
| Then you're doing something wrong. And, just as a note, you have to edit the code I gave you to make it work if you're using my code. |
|
|
| Report Abuse |
|
|