Like, you know when you hold down a key on the keyboard, one letter displays and then the letter starts to repeat itself until you let go of it? Like that.
COMMUNITY QUESTION
Please Help! This is a question about tween sizing frames?
1 answer
I think what you're trying to do is detect if a text fits inside the TextBox instance?
If so, the following would work for you.
TextBox, TextLabel, and TextButton all have a property (readonly) Called "TextFits", wich will be true when the text is able to fit on the X axis.
To use this in code we would do
-localscript inside TextBox
script.Parent.Changed:Connect(function()
if not script.Parent.TextFits then
script.Parent.Size = script.Parent.Size + UDim2.new(0,1,0,0)
end
end)
What that code does:
Check when the TextBox changes.
Checks if the current Text fits inside the TextBox.
If it doesnt fit, it increases the size until it fits.
Hope this helps you out.
RubenKan
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Where is your code?? We cannot help you because this is not a request site. Srry! :(