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 do I get the length of a string?

Previous Thread :: Next Thread 
iBrandyn is not online. iBrandyn
Joined: 30 May 2013
Total Posts: 1699
22 Dec 2014 02:44 PM
Is there a way to get how many characters a string has?

local string = "rue8hu ifjrig" -- 13
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
22 Dec 2014 02:44 PM
print(string:len()) -- 13
Report Abuse
Xsitsu is not online. Xsitsu
Joined: 28 Jul 2009
Total Posts: 2921
22 Dec 2014 02:46 PM
Here's this link just in case you need to ask any more questions about strings.

http://wiki.roblox.com/index.php?title=String_manipulation

Report Abuse
iBrandyn is not online. iBrandyn
Joined: 30 May 2013
Total Posts: 1699
22 Dec 2014 02:47 PM
thankss!
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
22 Dec 2014 02:50 PM
You can also do this

local s = "t4f4"

print(#s)

Also don't name your variables 'string'
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