Automatic Scaling

How to make that the text stays at the same size, like on the phone messages where the bubble gets
bigger when you type more?
Example :
image
image
image

Sorry if i’m not clear enough

You can use TextService’s function called GetTextSize whitch returns a Vector2,as arguments you need to pass the text,Font Size,font and the Frame size (as a Vector2)

1 Like

hmm thats good but the problem is that its in pixels so i need to use offset, and i don’t really like using that

that’s the code i did :

script.Parent:GetPropertyChangedSignal("Text"):Connect(function()

local test = game:GetService("TextService"):GetTextSize(script.Parent.Text,script.Parent.TextSize,script.Parent.Font,script.Parent.AbsoluteSize)

script.Parent.Size = UDim2.new(0,test.X,0,test.Y)

end)