TruWorlds

VisualInstance

Inherits: Instance

VisualInstance is an abstract base class for all instances that have both a physical and visual representation in the game world.

Properties

Transparency float

The transparency of the VisualInstance.

Visible bool

Whether the VisualInstance is visible in the game world.

local trap = world.FindFirstChild("SpikeTrap")
if trap:
    trap.Visible = false
    wait(2)
    trap.Visible = true