open a door from an animation

Hello I want to open my animated door from another animation. there is a door and three sphere. the player should choose the right sphere and stand on it. the right sphere will be like the key for the door. i tried some script but the dosn't work. I'm a beginner at unity. alt text

Thank you Sir Spinaljack