How would I make a textbox increase a size when one column is full with chars and then goes to the next line?

I was trying to use Basic admin essentials way of resizing the response box in the PM UI. Suddenly, it goes wrong when using the offsets and scales.

Using google classroom comment textbox as an example.

you can use :GetTextSize, pretty much all you’re doing is setting the size with the returned Vector2.Y value, if you do it correctly you get something like this:

1 Like

I’ve tried doing this, but then it would do the same thing.

local textbox = script.Parent.TextBox
local frame = script.Parent

	if prot == 'TextBounds' then
		local textsize = game:GetService'TextService':GetTextSize(textbox.Text, textbox.TextSize, textbox.Font,, 47))
		frame.Size =, 300, 0, textsize.Y+22)
		frame.Position =, 0, 0.446, -frame.Size.Y.Offset)

try using textbox:GetPropertyChangedSignal('Text')

1 Like

Not really helpful. Have you found other ways of knowing how to make your textbox work like that?

something like this

local textbox = script.Parent.TextBox
local frame = script.Parent
local ts = game:GetService("TextService")

	local a = ts:GetTextSize(textbox.Text,textbox.TextSize,textbox.Font,,50)) -- you can fool around with this
	textbox.Size =,a.X,0,a.Y) -- and this