Skip to main content

Vanishers

Vanishers are objects that disappear and become uncollidable when touched.

Use Cases

Vanishers can be used to create varying types of gameplay, puzzles, or contraptions. An example of this is to speed up pacing for a section by requiring the player to move fast.

All Vanisher parts in the VanisherGroup model will be activated when any part in the model is touched. Single-part vanishers without a model can be made by ungrouping the model and moving the VanisherConfiguration into the part.

Vanish modes

Each VanishMode has unique logic.

ModeDescription
FadeSmoothly fades.
BlinkFlashes multiple times before vanishing.
ConstantGradually fades depending on contact. If not in contact, regenerates.
ShrinkShrinks the part away in a set direction (Top, Bottom, Left, Right, Front, Back, Center). Does not support trusses and may behave oddly with spheres.

Configuration

NameDefault ValueDescription
BlinkCount3Amount of blinks in Blink mode.
ConstantNoRecoveryfalsePrevents recovery in Constant mode when not in contact.
InvertfalseReverses behavior: visible becomes invisible and vice versa.
OutlineColor(255, 0, 0)The color of the vanisher's outline when vanished. The default color of the outline will be the color given to it in Studio.
RespawnFadefalseWhether the part fades in when respawning.
RespawnTime2Seconds before the part reappears.
ShrinkDirectionCenterDirection of shrinking in Shrink mode.
ShrinkToZerofalseIn Shrink mode, determines whether parts will shrink to size (0, 0, 0) or not.
VanishModeFadeVanish behavior.

If you add the Invisible tag to a Vanisher part, it will ignore all collision and transparency updates. This can be used for detail such as having one big selection box around a set of trusses. IgnoreCanCollide and IgnoreTransparency also work and will cause it to only ignore that respective property.