workspace:FindPartOnRay() sometimes ignores terrain when hit

Repro
repro.rbxl (228.7 KB)

There’s a script in StarterGui, copy & paste and run into cmd bar. If a ray doesn’t hit the terrain it will create a part with the X-Z coordinates of it and print info about it.