Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How can i make all text in a TextLabel be written in caps?

Asked by 3 years ago

i have a textlabel that fetchs the player's name through a server script that activates a remote event, however, since it gets the player's name, it gets it with the intended capitalization, which i don't want (so for example, what i'd want is for it to say ARISNETA instead of ArisNeta), but i haven't been able to figure out a way since i'm not that experienced with scripting yet, if anyone here could help me that would be great, thank you!

1 answer

Log in to vote
1
Answered by 3 years ago

Use string.upper() and string.lower() to turn an entire string into either uppercase or lowercase characters respectively.

Example:

print(string.upper("ArisNeta"))

Output:

ARISNETA

Ad

Answer this question