Text on one line

Hello,

How do I write a text on a TextLabel and make sure it uses 1 line while TextScaled is true.
The text changes depending on the weapon name.

image

Thanks

2 Likes

There really isn’t a good solution to this problem. I’d usually suggest disabling TextScaled and resizing the text font size to an amount that looks perfect given that you know the size of the object. However, for this specific case, you should extend the X axis size. (diminishing the Y axis size should also help as long as you increment the X axis)

2 Likes

Have you tried using UITextSizeConstaraint?

1 Like

I do not know what that is and I do not see it in the properties.

It’s not a property, it’s an object. It works if you parent it to the GUI object that you want control over. I’d recommend reading the wiki for more detailed information: https://developer.roblox.com/en-us/api-reference/class/UITextSizeConstraint

1 Like