I really need this and tryed different ways... I can't check out wikia cuz it doesn't work. Most ways are setting lookat position, not rotation, or sertting position of model to 0, 0, 0
Any ideas?
There are multiple ways
define both then add
CFrame.new(x, y, z) * CFrame.fromEulerAnglesXYZ()
Note that you may want to consider converting degrees to radians first
CFrame.fromEulerAngles(math.rad(x), math.rad(y), math.rad(z))
OR
Define the rotation directly CFrame.new(x, y, z, qx, qy, qz, qw) Note that you need to learn quarternions to use this
OR
define position and another position to "look" at CFrame.new(Vector3 Position, Vector3 Other Position)
Marked as Duplicate by User#5423, theCJarmy7, and xAtom_ik
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?