How To Tween a gui with an AspectRatioConstraint?

I put an aspect ratio on my gui for the first time and decided to start attempting to work with it. When I went over to trying to tween it, no changes were made, and I am unsure why. Any help would be greatly appreciated
No errors were shown in the output also.

My code -


local button = script.Parent

local Frame = script.Parent.Parent.Frame

script.Parent.MouseButton1Click:Connect(function()
	
	Frame:TweenSize(
		
		UDim2.new(0.215 , 0 , 0.2 , 0),
		Enum.EasingDirection.Out,
		Enum.EasingStyle.Bounce,
		0.5,
		true
		
	)
	

	
	
end)

1 Like

Chances are that you’re only trying to change one of the axes instead of both, which in turn limits the size. What’s your frame’s size before the tween?

0.115,0,0.2,0 is the start size

Okay, you’d have to scale the Y axis too then.

UDim2.new(0.215 , 0 , 0.3 , 0)
1 Like

Thanks a bunch I wasn’t sure I had to tween both sides! :sweat_smile:

1 Like