How would I weld 2 train carraiges


Hello, in the images, there are 2 train carriages, both moved by TweenService
The trains bend when they are travelling along turns, however, I want the trains to appear connected, how would i go about doing this, cause right now, the trains are not connected.
When I weld the trains to the grey part in the middle, it glitches alot.

Any ideas?

Try using rigidconstraints or bones on the middle part (Split into more pieces) in order to make it bend