Name: Door - Multiplayer
By AdamO in Discord
This door is designed to handle multiple players entering and leaving the trigger area. Typically just using a trigger to open and close a door, means that with 2 players in the trigger and 1 leaves, the door will close. This provides a solution to that behaviour.
This door is also set up with a smaller “entry” trigger and a larger “exit” trigger, which gives slightly nicer behaviour so players have to walk further away for the door to close. If you don’t want to use both triggers, you can simply delete one and make sure the remaining trigger has both TriggerEnter/TriggerExit events pointing at the DoorScript’s OnTriggerEnter/OnTriggerExit functions.