For hours i’ve been trying to figure out how to make the RightShoulder Motor6D point at the mouse without any success.
Anyone knows how to do that?
Here’s the line of code I currently have:
Character.RightUpperArm.RightShoulder.C0=cf(WeaponsVariables.RightArmC0.p,WeaponsVariables.RightArmC0.p+(Mouse.Hit.p-Character.RightUpperArm.Position).unit)*angles(math.pi/2,0,0)
When I spawn and I don’t move, it works fine but if I rotate or move, it doesn’t work correctly anymore.