Fill : OverlayBase
OverlayBase
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.
Color3
The color to display.
Enum.FillDepthModeType
Determines how the fill is rendered when blocked by other objects.
AlwaysOnTop: Always displayed, even when blocked.
AlwaysOnTop
VisibleWhenNotOccluded: Displayed only when the object is not blocked by other objects.
VisibleWhenNotOccluded
VisibleWhenOccluded: Displayed only when the object is blocked by other objects.
VisibleWhenOccluded
number
The transparency of the color.
Last updated 2 months ago
local Fill = script.Parent Fill.DepthMode = Enum.FillDepthModeType.VisibleWhenNotOccluded
local Fill = script.Parent Fill.Transparency = 0.5