Understanding Triggers for Multiplayer

So the problem is that your current code means that whenever a character leaves, it triggers the door closing. You want it to remain open until everybody is gone. What you may want to do is assign an array to the door. On Begin Overlap the character adds himself to the array, and when a character leaves, they remove themselves from the array. Then instead of a boolean you use the length of the array. If the array is empty, it closes, if it has one or more items in it, it opens.