VoidInteractDOCUMENTATION2.0.0
Quick startGet VoidInteract

Make a button require a key

Connect your own button to a door, then require a Tool before it can open.

  1. Create a basic door with Behavior → Hinge, then Preview and Apply.
  2. Keep the door loaded and select a separate anchored Part or Model for the button.
  3. Open Switches and choose Connect.
  4. If players should use only the button, turn Player use → On this object off, then Preview and Apply.

Require a key

  1. Set the door’s Player use → Key / card to WorkshopKey. Preview and Apply.
  2. For this test, insert a Tool into StarterPack. Name it WorkshopKey and set RequiresHandle to false.
  3. Start Play and use the button. The key in the player’s Backpack allows the door to open.
  4. Stop Play, move the test Tool out of StarterPack, and test again to check that access is denied.

Use your own Tool name in your game. A matching VI_Key string attribute is also supported.

Expected result

The button opens the door only when the player has the matching Tool. Remove the test Tool when finished unless every player should receive it when they spawn.

Search all guidesEsc to close