In multiplayer client can't open door but the server can

Sorry, I said function but really meant a custom event. You don’t need to check authority though