Animated door doesn't open, while the identical copy of it welded to a different coach does

Hello!
I’m working on my first animations for the doors of my tram. The door animation (as seen in the clip here above) opens the doors in the middle coach completely fine. Though when trying to open the doors in the front and rear coach they won’t open unless you sit in the driver seat, or delete the connection between the middle coach and the coach the door is located in.
What I’d like to achieve is let the doors open the same in the rear and front coach the same as in the middle.

Note : the doors are identical, the RootPart is only welded to a different coach.

Thank you for reading!

robloxapp-20220409-2056556.wmv (3.6 MB)
[Edit : changed to script support]

If the doors are the same thing, then this would most likely be a code issue.

The code of the tram doors is exactly the same. I also noticed when I delete the engines of the front/rear coach, the doors open as well.