Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to increase the size of a textbox if there are too many lines? [Solved]

Asked by
stepatron 103
5 years ago
Edited 5 years ago

Title, I have this scrolling frame with a textbox in it that I want to increase in size if the lines are out of the viewing area of the textbox. How can I do this?

Edit: Solved! Script-

if textBox.TextFits == false then
    repeat
        wait()
        textBox.Size = textBox.Size + UDim2.new(0, 0, 0, textBox.TextSize)
    until textBox.TextFits == false
end
0
Not a request site! User#19524 175 — 5y
0
I wasn't asking for the script, I was asking for what functions would do what I want, I apologize if I wasn't clear on that, regardless, I solved it and will post the script soon. stepatron 103 — 5y
0
You should use http://wiki.roblox.com/index.php?title=API:Class/TextService/GetTextSize instead (didn't post an answer because you probably won't care) hiimgoodpack 2009 — 5y
0
Thanks, i'll keep that in mind for next time stepatron 103 — 5y

Answer this question