hinge joint 2d is disconnecting/detaching/tearing

Hello, I have connected some sprites using hinge joints 2d, but the problem is, that when
I pull one part of the chain(the last one), the parts will start making spaces between them, they will act like being attached but they won´t be connected.
How should I fix this? Thanks.

That’s your problem, then. HingeJoint2D will not override a directly set transform position, so the hinge gets pulled apart that way. In fact, no physics forces, colliders, or objects will override directly setting a GameObject’s position.

You might consider trying Rigibody2D.MovePosition, which is called very similarly to setting the position directly, but takes physics into account.