Okay, so I just did a simple Raycast, with .unit (only subtracted about 1.5 from the y after using it) and multiplied it by 50. I had it do FindPartOnRay, and then used ClosestPoint on the intersection point, and it gave me a crazy number that's way off. Why would this happen?
COMMUNITY QUESTION
ClosestPoint not working correctly?
1 answer
Cause your maths is wrong.
1 comment
2
This should be a comment.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
From the wiki:
The ray must be a unit ray!So does that mean I have to use .unit on it again to figure it out?
Ray.Unit will return to you a Unit ray, try using Closest point on that. Although, that might not be a problem, it would help if you posted some of your code.
That seems to have worked, but they're not the exact. I guess I could just do math.floor to fix that
I'm guessing they're not exact due to rounding from converting it back to a unit ray