|
| 03 Dec 2014 04:42 PM |
Could I parse a string for a number value? If so, how? |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 03 Dec 2014 06:13 PM |
oof, stretching my memory here. That's where the wiki comes in: string.match ("Power Level: 9001","%d") - "%d being any digit |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 03 Dec 2014 06:15 PM |
| %d* will search for any digit until the end of the "word", so use that instead |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Dec 2014 03:09 PM |
| How can I turn a string number into a useable number? Like one I can perform arithmatic on? |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2014 03:21 PM |
use 'tonumber' http://wiki.roblox.com/index.php?title=String#Advanced |
|
|
| Report Abuse |
|
|