I am making a custom chat GUI, and I want to make the player who chatted's name green, and I want to make his/her message to be white.
I know there is a substring function that goes something like this:
name = stringName.sub(1, 5)
But how can I find the length of the player's name if the player's name is not 5 characters long, and how can I color that specific part of the string (the name) when displaying it in a GUI?

2 comments
I'm not sure this is possible. You may have to make individual guis for every different name.
Yes, this is very possible. @RedCombee: Anything's possible on Roblox.