How do I script an animated door? because i tried copying some scripts and change some of the script to fit with my animated door and yet I didn't see any result.

This is the URL "https://www.roblox.com/library/2177422546/Working-Door-Animated" model that I tried copying the script and change the name to complete addressing it to my built.

What I copied exactly in the model are Door,Hinge, and the brick with click detector.

Please help me. to put a solution.

Thank You in Advance! :)