Issues with model animation and script

So i made a script to open the gate, but seems it not working with the animation model, only if i remove the motor 6d and replace part orders.
How i make a model to work with both ( animation + script)

TqPmkF0fA9
image

Gate.rbxl (151.5 KB)

I think it would have been easier to use tween services but I would check the priority. I do not use Moon Animation so i am not sure if it is like the normal roblox animator.

i want a model to use both, i have one model usign tween and another using animation (not opeening animation)

Here is a mistake

Yes, I know it still doesn’t work :frowning:

Still not working, actually i fixed that already, thats not the real problem