This script lets you configure a door. The Halloween Fun Example includes a wrought iron gate that can be opened and closed.
Both opening and closing can be set up individually with position, rotation, timing and easing control. You can also play sounds for open and close. Opening and closing can happen automatically after a set period of time. Additionally the gate can open away from the player for a more natural feel.
Check out the image below to see the options available.