Can't face the secondary axis(Y) of an Attachment towards a point

Hello :slightly_smiling_face:, im trying to replicate the properties of the Bones in the next image using a script.

I managed to set their position using bezier curves and works fine, but i need to get the secondary axis of every Bone to face the end point (You can appreciate that secondary axis as the orange vector from the image above).
I tried with multiple methods but i always end up having the rotation bad. Like in this example:

The nearest thing i achieved was creating a Part for every bone that has an AlignPosition (Part to bone) and an AlignOrientation facing the end point. Then i tried to make the bone’s WorldOrientation to the Attachment inside the Part used for the AlignOrientation but the problem i had was that the AlignOrientation was with the mode PrimaryAxisLookAt so i had some kind of the opposite of what i was looking for, because i don’t want the main axis to look to the end, i just want the secondary to do it.

Here is how i was trying to face the bone with CFrame.lookAt()

bone.WorldCFrame = CFrame.lookAt(bone.WorldPosition, EndPart.Position)