How to set a gui object's X size based on its Y size

im trying to make a ui object that is scaled to the hight of your screen but the width is based off of its own height (im having a frame with other frames inside and i want the frames inside to be squares but if i just scale the parent frame to the size of the screen the children frames will be stretched)

I kinda just want the proportions to be the same all the time and not get squashed or stretched

Just use UIAspectconstraint for child frame.