Hi. I'm making a custom chat GUI, and I want the Player's Name to be the same as their name would be with the normal ROBLOX chat system, but I need it to be a GUI. How would I get what color their name is? I have the GUI and everything, but I just can't get the Color.
01 | local CHAT_COLORS = |
02 | { |
03 | Color 3. new( 253 / 255 , 41 / 255 , 67 / 255 ), -- BrickColor.new("Bright red").Color, |
04 | Color 3. new( 1 / 255 , 162 / 255 , 255 / 255 ), -- BrickColor.new("Bright blue").Color, |
05 | Color 3. new( 2 / 255 , 184 / 255 , 87 / 255 ), -- BrickColor.new("Earth green").Color, |
06 | BrickColor.new( "Bright violet" ).Color, |
07 | BrickColor.new( "Bright orange" ).Color, |
08 | BrickColor.new( "Bright yellow" ).Color, |
09 | BrickColor.new( "Light reddish violet" ).Color, |
10 | BrickColor.new( "Brick yellow" ).Color, |
11 | } |
12 |
13 | local function GetNameValue(pName) |
14 | local value = 0 |
15 | for index = 1 , #pName do |
Replace INSERT_USERNAME HERE with the username
In normal chat system it is found by using the Team Color. To make the gui you could do.
1 | textgui.TextColor 3 = (game.Players.LocalPlayer.TeamColor).Color |
Hope this helps. Might work, not positive