Finding accurate hit position with raycasting

Hello, I was wondering how i can find the exact position where my ray hit the part, rather than finding the position of the part my ray hit, or if this is even possible. If not, I am wondering how i would find the position of the mouse click on a part in the workspace accurately.

1 Like

Mouse.Hit returns the CFrame of the mouse itself, so you could use that to get the exact position of the mouse.

RaycastResult.Position returns the position of the end of a ray, if the ray hit anything. In other words, this is the exact position of the ray where it hit the part.

2 Likes

Thanks, i ended up figuring it out but this wouldve definitely have been the solution to my issue