while true do
task.wait()
local labelSizeY = test.AbsoluteSize.Y
if labelSizeY > 70 or labelSizeY < 65 then
local labelSizeY = test.AbsoluteSize.Y
if labelSizeY == math.huge or labelSizeY < 67 then
labelSizeY = 67
end
local shouldResize = math.abs(labelSizeY - 67) < 5
local targetScale = 0.1
if shouldResize then
targetScale = math.max(labelSizeY / 67, 0.1)
end
local currentScale = frame.Size.Y.Scale
local newScale = currentScale + (targetScale - currentScale) *0.5
local fsize = frame.Size
frame.Size = UDim2.new(fsize.X.Scale, 0, newScale, 0)
end
end
im kinda trying to auto resize the gui if the test absolute size is too big or too small but i kinda wanna make it instant bc you can see how it resizes it and i dont rlly want it to be like that