Left arm isn't following mouse correctly

I have a script where the arms will point at the cursor. The right arm points flawlessly at the cursor, however the left arm not so much. Here is a video to show what i mean :

External Media

What could i do to fix this, and what do i change in my script?

This is the script :

local Offset = Vector3.new(0,0.9,0.175)
RightShoulderCFrame = Torso.CFrame:toObjectSpace(CFrame.lookAt((Torso.CFrame*RightShoulderC0).Position, mouseHit.Position-Offset) * CFrame.Angles(0, math.pi/2, 0))
LeftShoulderCFrame = Torso.CFrame:toObjectSpace(CFrame.lookAt((Torso.CFrame*LeftShoulderC0).Position, mouseHit.Position-Offset) * CFrame.Angles(0, -math.pi/2, 0))
toolEvent:FireServer(RightShoulder,RightShoulderCFrame, LeftShoulder,LeftShoulderCFrame)
1 Like

I believe it’s because the left arm is just moving in rotation, and not position too… so, it might look weird.
what you can do is, make a invisible part, then set the
size to the torso size, and then set the RightShoulder and LeftShoulder Part0/Part1 (depending on which one is set to torso) to the Invisible part, then just make a renderstepped loop that sets the Invisible part CFrame to something like CFrame.new(Torso.Position, mouse.Position) and you should be all set!, and this is also exactly what i did for my gun system and it worked perfectly.

1 Like