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?
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)
Man, I jnow those ways, but they also set MODEL's position to 0, 0, 0 (Default)... And also, I already figured how to avoid that in my case.
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
CFrame.new(Vector3.new())
It sets position, not rotation.
Can you not repost the same question.
Part and model are different things.