:ClosestPoint() not accurate even with .Unit

local ray = Ray.new(part.Parent.StartPoint.Position,part.CFrame.LookVector.Unit * part.Size.Z)
local point = ray:ClosestPoint(pos)

Pos being the mouse position plus a small offset of 0.05. part being the road, and there are 2 parts in the model on each end of the road. Prints comically large numbers as if it wasn’t .Unit.

Yep you .Unit it to make the ray length one, but then right after you multiply it by the size undoing the .Unit?

1 Like

dang. feels bad. live you learn

1 Like