Player colored tag in display name

How to make player display name colored tag like chat tag.

Example in screenshot.

I really do not have any ideas how to make it

Example:
example

1 Like

There is a property under each TextLabel (and its related classes) called RichText. Once enabled, you will be able to have more control over how you want to display your text. This, however, can only be done in a script.
You can read the full documentation about RichText here

Edit:

I will give you an example on how you can achieve this (though it may look really confusing if it’s your first time ever hearing about RichText being used for this).

Let’s say you just want to have a specific word (or letter) to be a different color from the rest of the text.

local TextLabel = script.Parent

-- Let's use the example text that you have given in your post
-- First make sure to have your Text Color (TextColor3) set to white so the rest of the Text is displayed as white

TextLabel.Text =  '[<font color="rgb(255,0,0)">Beta</font>] Player Name' 

-- to change the color for the specific word, change the **rgb()** numbers to the color you'd like to have.
1 Like

It’s working perfect
Thank you

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.