I’m currently trying to modify a rocket I made so that it points in the direction of the first player it detects. I’m using this line of code to get an orientation I can assign to the rocket since I want to keep its position:
local targetOri = CFrame.lookAt(missile.Position, target.Position):ToOrientation()
At first it seemed pretty logical, but while testing I keep getting the same error; the console complains that I’m giving it a number instead of a Vector3, and sure enough, when I print the variable targetOri to the console it shows me values such as “-0.00022263606660999358” which, to my knowledge, are completely meaningless and useless. Am I using ToOrientation() incorrectly? Is there any alternative method I should be doing instead?