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: UITextSizeConstraint | Documentation - Roblox Creator Hub

1 Like

Sorry for coming in even though this thread is old. Well, I think the issue was caused by RichText property. (if anyone needs help with this)

TextLabel with RichText:

TextLabel without RichText:

This wasted an hour of my time to figure out so thats dumb I guess.

2 Likes