Instances
UICorner
Rounds the background corners of a Frame, TextLabel or TextButton.
Properties
| Name | Type | Description |
|---|---|---|
CornerRadius | UDim | Sets all four corner radii together. Default: UDim.new(0, 8). |
BottomLeftRadius | UDim | Bottom-left corner radius. Default: UDim.new(0, 8). |
BottomRightRadius | UDim | Bottom-right corner radius. Default: UDim.new(0, 8). |
TopLeftRadius | UDim | Top-left corner radius. Default: UDim.new(0, 8). |
TopRightRadius | UDim | Top-right corner radius. Default: UDim.new(0, 8). |
Changing
CornerRadius synchronises all four individual corner properties. Changing an individual corner only changes that corner.Hierarchy parenting is unrestricted. UICorner affects rendering only when it is directly parented to a
Frame, TextLabel or TextButton. While active, Studio disables BorderMode and BorderSizePixel for the parent GUI object and the renderer does not draw that border.Example
Luau
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 8)
corner.Parent = workspace.Part.BillboardGui.Frame