1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

SizeConstraint

Used to constrain the scale of a GUI object.

Items

NameValueDescription
RelativeXY0The scale of X and Y are independent.
RelativeXX1The scale of X is shared with Y.
RelativeYY2The scale of Y is shared with X.

RelativeXY

The scale of X and Y are independent.

FieldValue
value0

RelativeXX

The scale of X is shared with Y.

FieldValue
value1

RelativeYY

The scale of Y is shared with X.

FieldValue
value2