Why does my currentcamera CFrame goes a slighty bit off

I am making a cutscene, where it starts at a fixed currentcamera cframe, what caught my attention is that it starts off not perfectly facing the front. (slightly off)

the method i use for my currentcamera CFrame is basically

workspace.CurrentCamera.CFrame = CFrame.new(PartPosition,Vector3.new(0,0,0))

that’s start part,
and yes the part is facing the front, it is also anchored.
just wanted to know if it is a known bug or not,
if not, then ill try to figure it out myself.

Have you tried zeroing out all the rotation axes within the CFrame?

What is the point of the new Vector3? Just use PartPosition.CFrame

workspace.CurrentCamera.CFrame = PartPosition.CFrame

The second argument of the CFrame is a LookAt vector, which is where the part will face. You’re making the camera positioned at PartPositioned, but then face Vector 0,0,0.

If you create a CFrame with just the position argument CFrame.new(PartPosition), then the Camera will face the negative Z direction (default direction).

1 Like

Unless PartPosition is an actual Vector3 then just use a normal BasePart

that’s not how it works!
thank you very much, i don’t know why i needed the orientation argument when i dont use it

If you’re talking about the LookVector part then I would point you to this


CFrame works in many different ways even though this is deprecated; it still works.