Outline/Fill

Overview

Outline and Fill can be used to highlight avatars or objects when they are distant or occluded by other objects.

Type

Object
Description

Outline

Displays an outline around a BasePart. The thickness can be adjusted via the Thickness property. It is useful for emphasizing distant objects, though the outline may be occluded by other objects.

Fill

Fills a BasePart with color, conforming to its shape. The DepthMode property determines whether the Fill object is always visible, visible only when not occluded, or visible only when occluded, making it ideal for providing hints when objects are occluded by other objects.

Outline

The Outline object in OVERDARE is used to emphasize the contours of specific objects, proving valuable for highlighting interactive elements or key targets in various scenarios.

Outline Properties

Property
Description

Enabled

Specifies whether the Outline effect is enabled or not.

Archivable

Determines whether the Outline can be replicated.

Adornee

Specifies the target object to apply the Outline effect.

Parent

Specifies the Outline’s position in the LevelBrowser hierarchy. The parent object serves as the default target for the Outline effect, but if Adornee is set, the Outline applies to the object set as Adornee regardless of this Parent property.

Name

Specifies the name of the Outline object.

Color

Specifies the color of the Outline.

Tickness

Specifies the thickness of the Outline.

  • Default: 0.2

  • Range: 0.0 to 1.0

Script Feature

local outline = Instance.new("Outline")
outline.Parent = workspace.TargetPart
outline.Color = Color3.new(1, 0, 0) -- Red
outline.Tickness = 0.5
outline.Enabled = true

Fill

The Fill object provides functionality to fill an object with a specific color and effect. It is useful for depicting character states, providing interaction feedback, or highlighting objects.

Fill Properties

Property
Description

Enabled

Specifies whether the Fill effect is enabled or not.

Archivable

Determines whether the Outline can be replicated.

Adornee

Specifies the target object to apply the Fill effect.

Parent

Specifies the Fill’s position in the LevelBrowser hierarchy. The parent object serves as the default target for the Fill effect, but if Adornee is set, the Fill applies to the object set as Adornee regardless of this Parent property.

Name

Specifies the name of the Fill object.

Color

Specifies the color of the Fill.

Transparency

Specifies the transparency of the Fill.

  • Range: 0.0 to 1.0

DepthMode

Determines the Fill’s display behavior depending on whether the object is occluded, with the following options:

  • AlwaysOnTop: The Fill is always displayed, regardless of object occlusion.

  • VisibleWhenNotOccluded: The Fill is displayed only when the object is not occluded.

  • VisibleWhenOccluded: The Fill is displayed only when the object is occluded by other objects

DepthMode Detailed Descriptions

The DepthMode property of the Fill object determines its display behavior based on whether the object is occluded by other objects.

  • AlwaysOnTop

    Displays the Fill in the foreground of the screen, regardless of whether the object is occluded by other objects.

  • VisibleWhenNotOccluded

    Displays the Fill only when the object is not occluded by other objects but is directly visible. In other words, the Fill appears only when the object is clearly within the line of sight.

  • VisibleWhenOccluded

    Displays the Fill only when the object is occluded by other objects. The Fill does not appear when the object is directly visible, but is highlighted only when the object is occluded.

Script Feature

local fill = Instance.new("Fill")
fill.Parent = workspace.TargetPart
fill.Color = Color3.new(0, 1, 0) -- Green
fill.Transparency = 0.4
fill.DepthMode = Enum.FillDepthMode.VisibleWhenOccluded
fill.Enabled = true

Last updated