Without clearly understanding what you are trying to achieve it’s hard to help you, I’ll link some stuff that could be helpful though.
Animation or Inverse Kinematics