How do I use rich text on values?

I want to make a script where I can make a value in a script a different color then the other text in it. Here’s what I mean.

for countDown= 20, 0, -1 do
	number.Text = "Loading in " .. countDown .. " seconds..." --How do I make countDown a different color?
	loading = true
	wait(1)
end

Couldn’t you just add <font color=""> before and after the variable?

for countDown= 20, 0, -1 do
	number.Text = "Loading in <font color=\"rgb(255,0,0)\">" .. countDown .. "</font> seconds..." --How do I make countDown a different color?
	loading = true
	wait(1)
end
2 Likes

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