Skip to Content
Kinemium

UICorner

Round the corners of a GUI element.

UICorner is a UI modifier that rounds the corners of its parent GuiObject. It can set one radius for all corners or each corner separately.

Getting started

local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 12)
corner.Parent = frame

Properties

PropertyTypeAccessDescription
CornerRadiusUDimRead/writeRadius applied to every corner.
TopLeftRadiusUDimRead/writeTop-left corner radius.
TopRightRadiusUDimRead/writeTop-right corner radius.
BottomLeftRadiusUDimRead/writeBottom-left corner radius.
BottomRightRadiusUDimRead/writeBottom-right corner radius.

The per-corner properties override CornerRadius for that corner.

Notes

  • Uses UDim, so a radius can be a fixed pixel count or a fraction of the parent size.
  • Modifiers apply to the parent GUI object; the modifier itself has no visual output.
  • Multiple corner modifiers on one object aren't meaningful; keep one.
  • Cloning copies all radius values.

See also

  • UIStroke for an outline.
  • GuiObject for the object being modified.

On this page