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

How would I tell how many characters a username has?

How would I tell how many characters a username has?

Example: If my username is "John Doe"

I want it to print the user has 8 characters in their username.

If anyone can help me thanks :D

1 answer

✓ Accepted answer

You can use the length operator (#)

print(#player.Name) -- would print 15 for your username, 6 for mine

3 comments

0

Thank you!

0

String.len could also work

0

No problem ;)

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