I am having problems with viewmodel camera animation.
I have looked at these posts for help:
Non have helped
The problem I am having is the camera spins instead of staying in one place:
Any help is appriciated.
Code:
local offsetCFrame = Current_Viewmodel.PrimaryPart.CFrame:ToObjectSpace(Current_Viewmodel.FakeCamera.CFrame)
CURRENT_CAMERA.CFrame = CURRENT_CAMERA.CFrame * CFrame.Angles(walkCycle.x / 100, 0, walkCycle.y / 6) * CFrame.Angles(recoil_x_rot.x*3, recoil_x_rot.y*24, recoil_x_rot.z / 12) * offsetCFrame