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 » Scripting Helpers
Home Search
 

Re: Silly question

Previous Thread :: Next Thread 
adamgren is not online. adamgren
Joined: 11 Nov 2008
Total Posts: 614
15 Dec 2012 06:28 AM
Sorry, I'm working on a script, and I can't remember, or find, the function for counting the number of characters in a string. Can someone post it?
Report Abuse
Monkey727 is not online. Monkey727
Joined: 12 Jan 2009
Total Posts: 969
15 Dec 2012 07:31 AM
Use "#" infront of the variable holding the string, It returns the length of it. ( I believe )

String = "Hello"
print(#String) --> 5
Report Abuse
cygorx is not online. cygorx
Joined: 09 Nov 2012
Total Posts: 668
15 Dec 2012 07:36 AM
Or, alternatively, if you wish to be less efficient, use string.len().
In some cases you just can't just the # operator, so for some things string.len might be better.
Report Abuse
cygorx is not online. cygorx
Joined: 09 Nov 2012
Total Posts: 668
15 Dec 2012 07:37 AM
My apologies, *you just can't trust the # operator.
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
15 Dec 2012 07:44 AM
silly
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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