Using richtext with a script

After many trials and attempts at making a textlabel have two separate colours with richtext, I have finally come here for support as nothing I’ve tried has worked.

I’m trying to use it inside of an overhead ui, expecting the output of "[+] Username".

Codes I’ve tried:

Text.Text = '<font color="#ffb300">'.."[+]"..'</font>' .. Character.Name
Text.Text = '<font color="rgb(255,179,0)">'.."[+]"..'</font>' .. Character.Name

Nothing I seem to do works, here’s what’s happening:

Any help would be appreciated.

Make sure TextLabel.RichText is turned on

I can assure you that it is on.

Try set Text property to <font color="rgb(0,255,0)">This is test</font>

I’ve had the same problem before, which I fixed by turning on RichText only after I’ve formatted the text. I think RichText does not keep up with changes to its text.

Try turning it off and setting it back to true after updating your text.