Hello! I’m not good with CFrames, and I’ve been trying to figure out this issue for far too long now. The following code is SUPPOSED to transfer the cframe lookat into the align orientations primary axis
local T = game.Workspace.Target
local C = game.Workspace.Rig
while wait() do
local OrientationCFrame = CFrame.lookAt(C.Torso.Position,T.Torso.Position)
local X,Y,Z = OrientationCFrame:ToOrientation()
print(X,Y,Z)
script.Parent.Torso.AlignOrientation.PrimaryAxis = Vector3.new(X,Y,Z)
end
But to put it in simple terms, it won’t work. I’ve tried multiple combinations but to no avail. If anyone could help me it would be greatly appreciated!