Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
BorderMode
Determines in what matter the border of a GuiObject is laid out relative to its actual dimensions. It is used by the property of the same name, GuiObject.BorderMode.
Items
| Name | Value | Description |
|---|---|---|
| Outline | 0 | As GuiObject.BorderSizePixel increases, the border grows outward. The dimensions of the GuiObject's contents do not change. |
| Middle | 1 | As GuiObject.BorderSizePixel increases, the border grows evenly inward and outward. The dimensions of the GuiObject's contents are reduced at a 1:1 ratio. |
| Inset | 2 | As GuiObject.BorderSizePixel increases, the border grows evenly inward only. The dimensions of the GuiObject's contents are reduced at a 1:2 ratio. |
Outline
As GuiObject.BorderSizePixel increases, the border grows outward. The dimensions of the GuiObject's contents do not change.
| Field | Value |
|---|---|
| value | 0 |
Middle
As GuiObject.BorderSizePixel increases, the border grows evenly inward and outward. The dimensions of the GuiObject's contents are reduced at a 1:1 ratio.
| Field | Value |
|---|---|
| value | 1 |
Inset
As GuiObject.BorderSizePixel increases, the border grows evenly inward only. The dimensions of the GuiObject's contents are reduced at a 1:2 ratio.
| Field | Value |
|---|---|
| value | 2 |