generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Looking through a string for an int value?

Previous Thread :: Next Thread 
DesolationGame is not online. DesolationGame
Joined: 03 Jul 2013
Total Posts: 217
03 Dec 2014 04:42 PM
Could I parse a string for a number value?
If so, how?
Report Abuse
maxomega3 is not online. 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 is not online. 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
DesolationGame is not online. DesolationGame
Joined: 03 Jul 2013
Total Posts: 217
04 Dec 2014 05:40 AM
Thanks.
Report Abuse
DesolationGame is not online. DesolationGame
Joined: 03 Jul 2013
Total Posts: 217
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
CaptainRuno is not online. CaptainRuno
Joined: 03 Sep 2011
Total Posts: 476
07 Dec 2014 03:21 PM
use 'tonumber'
http://wiki.roblox.com/index.php?title=String#Advanced
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image