Trying to create a gun hold animation by editing shoulder joints CFs

Hi, so I figured this would be a simple task. I got the right arm working correctly, I rotated the Right Shoulder’s CFrame slightly to the inside to create a nice gun animation, and I wanted to rotate the left arm much more but to the opposite direction so it looks like you’re holding the gun with two hands. However, I ran into a problem, and I’m obviously not very experienced working with welds and CFrames and that stuff, but I couldn’t seem to rotate the Left Shoulder’s C0 on the same axis as I was able to do on the Right Shoulder…:confused:

Here’s a video of what the result looked like:

Ideally, I’d like both arms to rotate on the same axis.

This is the code I’m using for this:

module.joints["Right Shoulder"].C0 = (not equipped and module.joint_defaults["Right Shoulder"]) or (module.joint_defaults["Right Shoulder"] * CFrame.Angles(0, math.rad(20), 0))
module.joints["Left Shoulder"].C0 = module.joints["Left Shoulder"].C0 * CFrame.Angles(0,math.rad(20),0)

Thanks!

1 Like

I solved it. I had to actually create a weld, weld the Left Arm to the Torso, then offset it from there. Works great now!

:grin: