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 » Scripters
Home Search
 

Re: HOW

Previous Thread :: Next Thread 
Craftwithcookie is not online. Craftwithcookie
Joined: 21 Dec 2012
Total Posts: 951
19 Sep 2016 02:26 PM
How do you check if a string is a number?

Ex:
if script.Parent.Text = anumber then
print "the string is a number."
end
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
19 Sep 2016 02:28 PM
if tonumber(script.Parent.Text) then
-- is a number
end
Report Abuse
JoshRBX is not online. JoshRBX
Joined: 19 May 2012
Total Posts: 8778
19 Sep 2016 02:29 PM
if tonumber(script.Parent.Text) == nil then
print("Isn't a number")
else
print("Is a number")
end


Report Abuse
llaserx is not online. llaserx
Joined: 10 Dec 2011
Total Posts: 53069
19 Sep 2016 02:30 PM
http://wiki.roblox.com/index.php?title=Global_namespace/String_manipulation
Report Abuse
iIikeyou is not online. iIikeyou
Joined: 07 Mar 2012
Total Posts: 1659
19 Sep 2016 02:30 PM
if tonumber'15'then
Report Abuse
llaserx is not online. llaserx
Joined: 10 Dec 2011
Total Posts: 53069
19 Sep 2016 02:31 PM
oh
I was gon tell him put to in wiki search bar
Report Abuse
Craftwithcookie is not online. Craftwithcookie
Joined: 21 Dec 2012
Total Posts: 951
19 Sep 2016 02:38 PM
Thanks :)
Now my search function works
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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