I am trying to make a handle weld to the right arm but offsetted 1 stud downwards. I also want the handle rotated 90 degrees but that puts the handle in the sky so I removed it for now
Code:
I don’t have any idea on how to do this. I’ve been searching for answers for about 4 hours now. I don’t know what I’m doing with my life at this point.
You can use attachment inside the main part. In the position attribute set the offset. And In the motor6D object, set the CFrame.new(attachment .WorldPosition) as c0.
if u know the cframe of the arm u could make the cframe relative to the arms cframe then just offset it. if say the arms cframe is A and the guns is G what we basically got is
G*someMatrixTransformation(M)=A
so we first move it to the side so we get like
M=A/G
and since we can’t divide matrices we gotta get the inverse then multiply it since it’s practically the same leaving us with that the matrix transformation is A*inverse(G)
then we multiply that transformation matrix by the guns cframe. from here we can do pretty much anything now, perhaps even combining the transformation matrix with a translation matrix up to make it pivot like you suggested, maybe like
This is what happens.
Its not as simple as “use c0” which everyone is telling me. Im starting to think I will never get this fixed. Which is probably the case and I will have to just quit this. I have been here all day looking for answers and have found 0.