How to rewrite CFrame rotation?

Hello, I’m trying to change only the position in CFrame. But when I insert LookVector into the argument, it is not correct.

What is the correct way to set position without rotation?

viewmodel.CFrame = CFrame.new(Pos, viewmodel.CFrame.LookVector);
1 Like

The solution turned out to be the most non-intuitive.
Thinking about writing my own wrapper for CFrame.

viewmodel.CFrame = CFrame.new(position) * viewmodel.CFrame.Rotation;

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.