while wait() do
local x = script.Parent.Size.X.Offset
local y = script.Parent.Size.Y.Offset
if x < 200 then
script.Parent.Size = UDim2.new(script.Parent.Size.Y, script.Parent.Size.X + 1)
else
if y < 100 then
script.Parent.Size = UDim2.new(script.Parent.Size.Y + 1, script.Parent.Size.X)
end
end
end
while wait() do
local x = script.Parent.Size.X.Offset
local y = script.Parent.Size.Y.Offset
if x < 200 then
script.Parent.Size = UDim2.new(0, script.Parent.Size.Y, 0, script.Parent.Size.X + 1)
else
if y < 100 then
script.Parent.Size = UDim2.new(0, script.Parent.Size.Y + 1, 0, script.Parent.Size.X)
end
end
end
But im getting the same error
(Im going for offset because scale just is just a mess with different screen sizes
Im going for offset because scale just is just a mess with different screen sizes (If you have 1280×720 screen and someone else has 1920×1080 it just messes up)