2 Vector3s In One CFrame

Hello Developers,

I read someone’s code recently and was wondering what this meant:

CFrame.new(Vector3.new(0,0,0), Vector3.new(0,0,0))

meant.
I’ve seen this previously, but forgot it’s purpose.

I remember someone telling me it was matching the rotation of the 2nd argument. However, why not just use CFrame.lookat()?

So is one better than the other?

Nevermind. According to the documentation, CFrame.lookAt is a replacement for CFrame.new(pos, lookAt). The latter remains for backward compatibility.

If anything, they should just say it’s deprecated and to use CFrame.lookAt
In all fairness, they are saying CFrame.lookAt is replacing it. But they could be more clear about it and say right off the bat:
“We reccomend you use CFrame.lookAt rather than .new(Vector3, Vector3). As they have the same result, but CFrame.lookAt is replacing it.”