Property: Anchor — CFrame

Used to position a frame. A frame can have up to 4 anchors.


@ side ?
[ AnchorSide ]
Top | Left | Right | Bottom
@ relative  
[ FrameReference ]
@ pos ?
[ AnchorPos ]
@ offset ?
[ Int32 ]


  • At least two sides of an element must be anchored in order for it work work properly.
  • When anchors are set for pair of the Sides, then final Width/Height will be determined automatically.
  • It’s possible to anchor all sides within single definition, by ommiting side attribute
    i.e. <Anchor relative="$parent" /> - will use the anchors of an parent element.


<Anchor side="Left" relative="$parent/SiblingFrame" pos="Max" offset="0"/>
<Anchor side="Right" relative="$parent/SiblingFrame" pos="1.25" offset="0"/>
<Anchor side="Top" relative="$parent/SiblingFrame" pos="-1.0" offset="0"/>