RichText doesn't work

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

  1. What do you want to achieve? Keep it simple and clear!
    RichText string
  2. What is the issue? Include screenshots / videos if possible!
    It displays the tags like richtext was disabled, even tho its enabled, and if I put direct strings that doesn’t include variables on it, it works
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Its been 10 minuts i’ve been searching around with no one having a similiar issue so far with variables, I saw only those with color issues.

Here’s the string that im trying to put in:

teammateNodeFrame.PlayerInfo.Text = " <b> " .. player.Name .. " </b> - " .. playerHealth .. "/100 HP </br>Status: "

image

1 Like

EDIT: eventually tried using an escape on the /HP thing but it didn’t work

Does removing the spaces before/after the tags work? E.g.

Turn that into <b>" ..

Can you also change </br> into <br />?

1 Like

It pretty much worked. Thank you!
image

"<b>" .. player.Name .. "</b> - " .. playerHealth .. "\/100 HP <br />Status: "
1 Like