I need help on triggering door slide opening animation with AnimationController

So recently i made a commuter train door which slide opens when a button is pressed.
The door is currently using AnimationController.
I’m really bad at scripting and request scripting help on making the door opening button, although i knew how to detect clicking, but i’m not entirely sure on how to trigger the animation event.
I looked on google and searched through the forum but didnt get a good answer.
Any helpful answers are appreciated.
The play speed of animation is normal speed which is 1.

Why are you using AnimationController for a door?
You can just use PrismaticConstraints, or CFraming with a ClickDetector.

1 Like

I thought animation would be easier to animate.
i will consider that