Rich Text for variables

I know Rich Text can be applied to Strings but is it possible to apply Rich Text to variables that are added to GuiText? Such as ( "Text1 " + myIntVar). My question is if it’s possibly to apply bold to the myIntVar as well?

Have you tried?

It’s just strings. If you add a string and a number, it concatenates the string with a string representation of the number. You can add more string bits after that.

    ("<b>myIntVar is currently " + myIntVar + "</b>")
1 Like

Oh wasn’t aware that you could transfer over the rich text between Strings like that. I guess in the end it all gets combined. I’ll go try it out.

Edit: Works perfectly! Thank you. Guess I was derping to not think of that.

Hey there! I know it’s necroposting, but thanks!