Camera - Motor6D Arms Alignment Problem

1. What do you want to achieve?
I want to create a camera and character interaction system where the character’s upper torso and arms follow the camera’s orientation on the Y-axis.

2. What is the issue?
The code does not successfully make the arms follow the upper torso’s Y-axis orientation when the gun is equipped. The arms’ Y-axis remains fixed while the upper torso’s Y-axis changes as intended.

3. What solutions have you tried so far?
I’ve attempted to make the arms’ Y-axis orientation align with the upper torso’s Y-axis by trying to apply rotations directly to the arms and upper torso.

local waist = Torso:WaitForChild("Waist")

function UpdateUpperTorsoOrientation()
	local waistC0Y = waist.C0.Y
	
	local cameraCFrame = Camera.CFrame
	local cameraDirectionY = cameraCFrame.LookVector.Y

	local newWaistC0 = CFrame.new(0, waistC0Y, 0) * CFrame.Angles(cameraDirectionY, 0, 0)

	waist.C0 = waist.C0:Lerp(newWaistC0, 0.5 / 2)
end
1 Like