Variables with rich text

Im wondering on how you can use variables in rich text? Like i want a way to display variables with rich text(on GUIs)
For example:

script.Parent.Text = '<h1>(VARIABLE)</h1>

I was wondering if this article may help you

I already looked at that article, it didnt help me much.

Why can’t you just concatenate it?

script.Parent.Text = "<h1>"..VARIABLE.."</h1>"

script.Parent.Text = "<h1>"..tostring(VARIABLE).."</h1>"

1 Like

script.Parent.Text = string.format("<h1>%s</h1>", VARIABLE)?

2 Likes

I didnt think of that lol, it works now, thanks

1 Like