> For the complete documentation index, see [llms.txt](https://docs.overdare.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overdare.com/development/api-reference/classes/fill.md).

# Fill

Fill : `OverlayBase`

## Overview

An instance that overlays a color across the entire surface of a BasePart.

Unlike Outline, the DepthMode property allows you to control whether the fill is visible even when blocked by other objects.

Outline and Fill effects added under a character model are not applied to objects under the Humanoid’s ActionRunner, preventing unnecessary effects on ActionSequence presentation objects. This rule applies equally to objects cloned when an ActionSequence is executed and objects dynamically added to the ActionRunner through scripts. However, if Outline or Fill effects are added directly to objects under an ActionSequence, those effects are applied.

## Properties

### Color

`Color3`

The color to display.

#### Code Samples

### DepthMode

`Enum.FillDepthModeType`

Determines how the fill is rendered when blocked by other objects.

* `AlwaysOnTop`: Always displayed, even when blocked.
* `VisibleWhenNotOccluded`: Displayed only when the object is not blocked by other objects.
* `VisibleWhenOccluded`: Displayed only when the object is blocked by other objects.

#### Code Samples

```lua
local Fill = script.Parent

Fill.DepthMode = Enum.FillDepthModeType.VisibleWhenNotOccluded
```

### Transparency

`number`

The transparency of the color.

#### Code Samples

```lua
local Fill = script.Parent

Fill.Transparency = 0.5
```

## Methods

## Events

## See also

{% content-ref url="/pages/h4KudP394x8lFNw1dWjJ" %}
[Outline/Fill](/manual/studio-manual/object/outline-fill.md)
{% endcontent-ref %}
