Glorpia Docs
Instances

UICorner

Rounds the background corners of a Frame, TextLabel or TextButton.

Properties

NameTypeDescription
CornerRadiusUDimSets all four corner radii together. Default: UDim.new(0, 8).
BottomLeftRadiusUDimBottom-left corner radius. Default: UDim.new(0, 8).
BottomRightRadiusUDimBottom-right corner radius. Default: UDim.new(0, 8).
TopLeftRadiusUDimTop-left corner radius. Default: UDim.new(0, 8).
TopRightRadiusUDimTop-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

Related