How do I make a textlabel automatic scale only scale in one direction

There is the red error lines everywhere.

in Studio

("<font color="#ff0000" size="..24">KILL!</font>")

Try the code I previously mentioned in a LocalScript under the TextLabel. This will say KILL! and then your name normally.

It doesn’t know what ff0000 is.

See if this works.

script.Parent.Text = ("<font color=\"#ff0000\" size=\"24\">KILL!  </font>"  .. game.Players.LocalPlayer.Name)

The errors went away, but I haven’t tried it yet.

All the text says is super small versions of the line of code. It just says the same line but not kill and the players name.

May I have a screenshot? For me, it looks like this:
image

All it does for me is say the line of code but doesn’t actually put it there.
Can you put your exact line of code here?

script.Parent.Text = ("<font color=\"#ff0000\" size=\"24\">KILL!  </font>"  .. game.Players.LocalPlayer.Name)

Make sure you are copying the entire thing.

1 Like

It still does the exact same thing.

image_2022-07-18_123255758

That’s what happens for me every time.

Is there any reason why you’re escaping the hex code and text size? From my understanding that’s not necessary and can even cause problems with the rich text interpreter.

@duckeys Try the following:

script.Parent.Text = '<font color="#ff0000" size="24">KILL!  </font>'  .. game.Players.LocalPlayer.Name

Make sure your RichText property in the TextLabel is enabled.

1 Like

Wait, I forgot to turn it on lol.

1 Like

Also, keep in mind that the player name will be what you have the Color and Size set as in the TextLabel's properties.

It works but the text is incredibly small.

But how do I do that effect from Caliber?

Set the TextSize property of the TextLabel to 14, and set it’s TextColor3 to 0, 255, 234

How do I change the text after kill! to be Cyan?

Set the TextColor3 property of your TextLabel to be 0, 255, 234

But that will change all of the text to be Cyan.