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 to figure out how many characters are in a string?

Previous Thread :: Next Thread 
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
31 Mar 2015 08:14 AM
I thought string size worked, but it didn't
How can I do this?
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
31 Mar 2015 08:15 AM
#"Your string"
x = "Hello"
print(#x)
>5
Report Abuse
radioactivated is not online. radioactivated
Joined: 05 Sep 2009
Total Posts: 1181
31 Mar 2015 08:16 AM
This problem could be fixed with a quick google search for "roblox string length", but here you go...

string.len(your_string)
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
31 Mar 2015 08:28 AM
How come this doesn't work?
if string.len(script.Parent.Parent.NameBox.Text) < 3 and string.len(script.Parent.Parent.NameBox.Text) > 20 then
No output
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
31 Mar 2015 09:03 AM
That looks fine. You're just doing the logic wrong. How can it be less than three AND greater than twenty at the same time? (I'm not counting quantum physics)
Report Abuse
buildersteven4 is not online. buildersteven4
Joined: 08 May 2009
Total Posts: 1325
31 Mar 2015 09:46 AM
But you should count quantum physics :3
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
31 Mar 2015 09:57 AM
The question is, should you count quantum physics while not counting quantum physics?

~The herp lerped a derp~
Report Abuse
FunkiAndrew is not online. FunkiAndrew
Joined: 01 Dec 2013
Total Posts: 2318
31 Mar 2015 10:06 AM
Quantum physics are a violation of the second law of thermodynamics!

at least I think that's right.
Report Abuse
AlgyLacey is not online. AlgyLacey
Joined: 14 Jun 2013
Total Posts: 3736
31 Mar 2015 10:26 AM
Quantum Physicists say: If you think you understand quantum physics, then you are wrong.

{-[ Check this out! http://www.roblox.com/games/217210581/Farmulator ]-}
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
31 Mar 2015 10:40 AM
If you think you understand quantum physics, you don't understand quantum physics.

Another

If a man says he can think about quantum problems without getting giddy, that only shows he has not understood the first thing about them.
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
31 Mar 2015 04:51 PM
wow I'm so stupid I accidentally did and instead of or...
GG
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