PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

BorderSizePixel

GuiObject

int

This property determines how wide a GuiObject|GUI's border should render, in pixels.

This property, GuiObject/BorderColor3, and GuiObject/BackgroundTransparency determine how the border of a GUI element should look.

The border width extends outward the perimeter of the rectangle. For instance, a GUI with a width of 100 pixels and BorderSizePixel set to 2 will actually render 102 pixels wide.

Setting this to 0 will disable the border altogether.


Code Samples


Button Highlight

This code sample causes the border of a parent GuiObject to highlight when the user hovers their mouse over the element.