How do I make a text italic through a script

Is there anyway to change if a text is italic or not through a script?

I have looked on the DevForum but can’t find anything and I have tried

TextLabel.FontFace.Style.Value = true

and other random stuff but those didn’t work and I am lost.

Screen Shot 2022-10-28 at 6.15.45 PM

1 Like

Try this code snippet:

TextLabel.FontFace.Style = Enum.FontStyle.Italic
2 Likes

Alternatively you could enable the RichText property and do the following:

local TextLabel = script.Parent.TextLabel
TextLabel.Text = "<i> Hello, world! </i>"
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.