Roblox Text Box [ ASK ]

Is there a way to make textbox bigger if the text is reach the limit (without using TextScale because TextScale make text smalller if there are lots of texts)?

You could use TextBox.TextFits
Or you could use TextLabel.TextBounds

I know about TextBounds but can you tell me more about using TextFits? What are their uses, etc?

Well you can use TextFits really to tell when the text becomes to large for the box by checking for when that changes. It’s just a boolean that will tell you if the text will fit nicely within the current size of the text box with the font size you have selected. Basically it’s true when the text fits completely within the textBox and false otherwise.

I’d try using AutomaticSize. It’s a property on pretty much every gui element, and automatically scales up the textbox!

Example:

It’s set to XY here.

1 Like

Oh, AutomaticSize work for this case? Let me try it.