#GUI : Get Textlength based on the Absolute length off the string

1 messages · Page 1 of 1 (latest)

weary prairie
#

As majority of people would answer ; No I am not looking for #String. When you type a letter, depeding on the character or if it is capital you get a letter which can be smaller or bigger. For exemple "lll" is smaller than "mmm"...

I want for my GUI to adjust the Frame size to make the text fit.

And since I am out of ideas I may need help for the good scripters that got any inspiration in order to get a glimpse on how could it be possible to get the Absolute size of a string.

dim delta
#

frame.Size = UDim2.new(0, TextLabel.TextBounds.X, frame.Size.Y.Scale, frame.Size.Y.Offset)
Idk if it works honestly

jagged lotusBOT
#

studio** You are now Level 1! **studio

weary prairie
#

TextBounds?

dim delta
#

Yeah

#

I saw someone else do it

#

But i cant check rn since im on phone

weary prairie
#

I'll try to "experiment first", I never knew this proprety existed

dim delta
#

Ya

#

Sorry if it doesnt work tho, ill try helping later if i can

weary prairie
jagged lotusBOT
#

studio** You are now Level 3! **studio

weary prairie
#

Ty