Joints and rotations

Hi,

I’m doing a arm/leg joint script sistem.

I divided the Leg in two parts, and I want the lower segment to “keep up” with de upper segment along it’s rotation, as for a normal human being.

In a zip are provided my first two failed atempts, please give a look.

Can you help me?
:beer:

well I figured it out, thx anyway

If ur intrested by the way…

INSTRUCTIONS: click body parts to rotate them twoards the mouse…