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
✓ ANSWER ACCEPTED
getting the amount of characters in name?
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
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
len() is irrelevant you can use the length operator on strings
ah good to know thanks
well it does work but not for what i needed it to but ill accept anyway since i guess i wasnt clear enough
What did you need?