When setting text on a TextLabel with RichText enabled, it is expected that the rich text tags will be displayed correctly. However, bold and italics will keep the other from being properly set on the label until there’s been a “reset”, where there’s no rich text tags applied on the TextLabel.
Steps to reproduce:
Create a TextLabel and put it in a ScreenGui under StarterGui
Make sure RichText is enabled
Set the text to something like: “Hello <b>world</b>”
Then set the text to “Hello <i>world</i>”
(expected: the text will turn to italics, actual: it stays bolded)
Then set the text to “Hello world”
Try again setting it to “Hello <i>world</i>”, and success.
local label = script.Parent
-- note: for my own testing, anything above task.wait(0.05) breaks and below it works fine
label.Text = "<b><i><font face='PermanentMarker'><font color='rgb(255, 0, 0)'><font size='40'>PERMA-BAN</font></font></font></i></b><font face='Nunito'><font color='rgb(255, 0, 0)'><font size='30'><b> A PLAYER</b></font></font></font>"
task.wait(0.5) -- Adding a yield (>0.05) makes the font-changing break
label.Text = "<font face='FredokaOne'>Test</font>"