Roblox UtilitiesDevlHub Roblox Documentation

Class

SelectionBox

Memory category
Instances

Renders a 3D box around its Adornee.

SelectionBox renders a 3D box around its Adornee when it is a descendant of the Workspace or anywhere where GUI objects are rendered. The box's geometry consists of rectangular prisms forming an outline/wireframe in addition to a surface for each of its faces. SelectionBox does not capture any form of input; it is solely a visual effect.

For an outline/fill overlay effect which covers non‑primitive geometry such as that of a MeshPart, see Highlight.

Properties 4#

LineThicknessfloatDetermines the thickness of the boxes outlines, in studs.ReadSafe
SurfaceColorBrickColorA BrickColor version of SurfaceColor3.ReadSafeDeprecatedHiddenNotReplicated
SurfaceColor3Color3Determines the color of the box's surfaces.ReadSafe
SurfaceTransparencyfloatDetermines the transparency of the box's surfaces.ReadSafe

LineThickness: float#

ReadSafe

LineThickness determines the thickness of the box's outlines, measured in studs. If set to 0, the outline will not be visible at all.

SurfaceColor: BrickColor#

HiddenNotReplicatedDeprecatedReadSafeDeprecated

Deprecated. This property is deprecated in favor of SurfaceColor3 which uses the more precise Color3 data type instead of a BrickColor used by this property.

A BrickColor version of SurfaceColor3.

SurfaceColor3: Color3#

ReadSafe

SurfaceColor3 determines the color of the box's surfaces.

See also Color3, a property of the superclass GuiBase3d which controls the color of the outline rather than the surface faces.

SurfaceTransparency: float#

ReadSafe

SurfaceTransparency determines the transparency of the box's surfaces, similar to the way BasePart.Transparency works. By default, this property is 1 which causes the surfaces to be invisible.

See also Transparency, a property of the superclass GuiBase3d which controls the transparency of the outline rather than the surfaces.

Inherited members#

Inherited from InstanceAdornment 1
Properties (1)

Adornee

Inherited from GuiBase3d 4
Properties (4)

Color, Color3, Transparency, Visible

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed