I am making a third person gun camera system, and I am having issues making the arms rotate with the camera. The head rotates just fine but it’s the arms that are having issues.
Code:
local function updateLimbs()
local cameraDirection = script.Parent.HumanoidRootPart.CFrame:ToObjectSpace(cam.CFrame).LookVector
local offsetAngles = CFrame.Angles(-math.asin(cameraDirection.Y), math.asin(cameraDirection.X), 0)
neck.C1 = CFrame.new(originalNeckC1.Position) * offsetAngles
rightShoulder.C1 = CFrame.new(originalRightArmC1.Position) * offsetAngles
leftShoulder.C1 = CFrame.new(originalLeftArmC1.Position) * offsetAngles
end
What I want it to look like (Blackhawk Rescue Mission 5):
What it actually looks like:
I want the arms to follow the camera not the mouse, and I’ve tried searching for this thing but all I get is stuff that follows the mouse or viewmodels. I am not looking for either of those, but any help is appreciated. Thanks!