Im trying to make an fps game. I want to make animations for hands, but when I try to set the position of the camera, I get the wrong orientation. (I using :
workspace.CurrentCamera.CFrame = workspace.hands:GetPrimaryPartCFrame()
The orientation of the camera is based on the matrix of the CFrame ( lookvector,upvector,rightvector)
So unless you want to manually input the vectors I’d suggest you use CFrame.Angles() then multiply.
If you are directly using another part CFrame(which you do) make sure the Front face
of the part is looking at the direction you want the camera to look. To locate the front face create a Decal
inside the part and set the Face
property to Front
. Then the orange/yellow indicator of the decal will show you which face is the front one.
I think the problem is in work of camera. When you rotating, your camera rotates around a position.