Simply, I would like to know how I can use CFrame.lookAt BUT, I add a number to one of the axis so the rotation gets added (0,0,90) so the object can look at something but is slightly tilted on one angle.
Any help is appreciated!
Simply, I would like to know how I can use CFrame.lookAt BUT, I add a number to one of the axis so the rotation gets added (0,0,90) so the object can look at something but is slightly tilted on one angle.
Any help is appreciated!
-- Rotate the CFrame relative to itsself (not relative to the world)
local titledCFrame = cframe * CFrame.Angles(0, math.pi * 0.5, 0)
local direction = tiltedCFrame.LookVector
-- Or just get the directon to the right of the CFrame
local otherDirection = titledCFrame.RightVector