Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

getting the amount of characters in name?

is there any way to get the amount of characters a player has in their name into a number, for example is the player name is slayer then the amount would say 6, if so could anyone link me to some explanation about it or tell me here

1 answer

✓ Accepted answer

stringLength = string.len("hello world")

This would print the number of characters in the string hello world and put it inside the stringLength variable. stringLength is now 11

Like bash said, you can also do print(#("hello world")) '#' meaning number of characters within the string

4 comments

1

len() is irrelevant you can use the length operator on strings

0

ah good to know thanks

0

well it does work but not for what i needed it to but ill accept anyway since i guess i wasnt clear enough

0

What did you need?

This discussion is preserved as it was. New answers, comments, and votes are closed.