---
title: "UICorner"
description: "Rounds the background corners of a Frame, TextLabel or TextButton."
canonical: "https://docs.glorpia.com/instances/uicorner"
markdown: "https://docs.glorpia.com/instances/uicorner.md"
---
# UICorner

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

**Category:** Instances

## 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). |

> **Note:** Changing `CornerRadius` synchronises all four individual corner properties. Changing an individual corner only changes that corner.

> **Note:** 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

- [Frame](https://docs.glorpia.com/instances/frame.md) — Rectangular GUI object.
- [TextLabel](https://docs.glorpia.com/instances/textlabel.md) — Text GUI object.
- [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Clickable text GUI object.
- [UDim](https://docs.glorpia.com/scripting/datatypes.md) — Scale and offset datatype used for CornerRadius.
