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

Autosizing textlabel on the Y axis?

Asked by 6 years ago

I'm trying to find a good way to size text on the Y axis beforehand. I used textservice but it gives me inaccurate numbers. I put the x size for textservice and the max Y if that is the problem. Is there any way to autosize?

local newsize = game:GetService("TextService"):GetTextSize(v[1], 20, Enum.Font.SourceSans, Vector2.new(xsize_limit_put_nil_to_make_unlimited,2147483583)).X;
0
^ what even is that. just change the Y to UDim2.new(0,0,0.1,0) instead of UDim2.new(0,0,0,10) greatneil80 2647 — 6y
0
That is what I used for the text sizer the parameter "xsize_limit_put_nil_to_make_unlimited" is the max X and the script is suppose to calculate Y axis XeonNetwork -5 — 6y
0
Also what is that scale suppose to do. XeonNetwork -5 — 6y

Answer this question