How to code a one way door

I want to code a door that can only be accessed from one side? And I don’t know very much Javascript code as I’m new to it all. Any help guys? You’re all amazing I’m sure somebody knows how to do it

This has more to do with your architectural design of your door as with any code. What kind of door do you have (sliding, rotating, …)? How should it be opened? How should it be closed? Ask detailed questions. It’s really not clear what exactly you want.

The usual way to detect if th player is in front of a door / object / … is to use a trigger. There are tons of tutorials out there.