How can I add different color to a letter in a TextLabel?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I want to add different colors at different letters inside TextLabels

  2. What is the issue? it’s not possible to change the color of a letter using the properties of textlabels

  1. What solutions have you tried so far? I tried to but didn’t find any.

I want to make all the letters have random different colors, but there isn’t a way in the properties tab. I want to know how to add color on different letters on a text label.

1 Like

If you want to change textlabel properties halfway through the text you have to use RichText markup. After setting .RichText to true on the textlabel.

1 Like

as you can see, RichText is on as shown on the picture

You have to set the colours in the text

Example:

default <font color="#ff0000">red</font> <font color="#00ff00">blue</font> <font color="#0000ff">green</font>
2 Likes

why did you send a .xml thing when roblox uses .lua

Because <name property="value">content</name> is xml, so I did it like this for nicer syntax highlighting.

You have to wrap it in ‘’ or `` to have it as a string in luau.

See the link I posted for more information:

1 Like

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