Making gui y size proportional to x

I am working on the Gui for my game, and i came across this problem, lets say i want the gui to be half as tall as it is wide, and with is set with scale.

1 Like

You can use Offset for this.
Gui.Size.Offset

1 Like
GuiElement.SizeConstraint = Enum.SizeConstraint.RelativeXX

GuiElement.Size = UDim2.new(width, 0, width / 2, 0)
2 Likes