How do I turn velocity into a orientation?

Im trying to turn a velocity into the orientation a part would have if it was facing the way it was moving. Example: A velocity going upward would make it so that the orientation would make the lookvector of a part applied to face up.

You would do something like this;

function faceVelocity(part)
	part.CFrame = CFrame.lookAt(part.Position, part.Position + part.Velocity)
end
3 Likes

Sorry for the late reply. Thankyou for the help! Much appreciated!

2 Likes