Getting Mouse.Hit rotation

So I am trying to create a kunai where you throw it based on mouse.Hit.p, and the it uses body velocity to get to the position, and it works fine. The problem is that I am just not able to discover the rotation so it looks like its front/blade is heading into the position, instead of just moving the kunai to the location and not rotating it at all. If you didn’t understand my question feel free to ask me to rephrase it, and if you know a solution please send it to me, Thanks in advance :slight_smile:

Mouse.Hit doesn’t have a rotation as far as I know.

ok, do you know if I can get a rotation from a ray?

Mouse.Hit is a CFrame, so you can extract a direction vector from it.

4 Likes

I will test that then, thank you for the reply :slight_smile:

it worked, thank you a lot :slight_smile:

1 Like