How do you make a open/closeable door with a mouse-click

I’m making a five nights at freddys game and I need to know how to use the doors. Any help would be great! Game: https://flowlab.io/game/play/111788