How do I do a thing where a door automatically opens once a player goes into the range of the door? If somebody could give me a script with explanations with the -- thing, thank you but if not I will try to figure it out.
COMMUNITY QUESTION
How do I make a door open/close script?
1 answer
I won't give you a script, but it is quite simple to do.
What you would want is either a range detector, or a trigger block.
A trigger block (as I'm calling it) would be a transparent block which you can walk through which is located near the door, when it is touched then it will open the door for a certain amount of time. That could work quite well.
The next is a range detector which involves maths and it calculates how far away a player is from a door and will stay open as long as they are in a given range, I won't go into detail as you can find this all online but that should give you some ideas :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
As for the Trigger Block, I didn't bother to read the rest, I have actually done it before. It's messy, but it can work in enclosed spaces. I wouldn't use either method though.