How can i rig an mechanic arm like this?

You want an IK constraint.

2 Likes