VSCPlays
(VSCPlays)
January 26, 2023, 3:18pm
#1
You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? I want to add different colors at different letters inside TextLabels
What is the issue? it’s not possible to change the color of a letter using the properties of textlabels
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
VSCPlays
(VSCPlays)
January 26, 2023, 3:23pm
#3
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>
4 Likes
VSCPlays
(VSCPlays)
January 26, 2023, 3:24pm
#5
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
system
(system)
Closed
February 9, 2023, 3:33pm
#8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.