What does the 3rd argument return when using :FindPartOnRay?

I’ve been trying to understand what :FindPartOnRay does, so I decided to do what any other person would do and look it up on the Roblox Developer Hub. I completely understand what all arguments do except for the 3rd one. On the page it says:

“This function returns the BasePart or terrain cell hit, the point of intersection, the surface normal at the point of intersection, and the associated Material hit.”

I’m not quite sure what that means so If somebody could answer my question that would be great. Thanks! :slight_smile:

You shouldn’t use this anymore anyway. You should instead use the new raycasting API:


Anyways, the surface normal is basically the side where it hit.

For instance, 0, 0, 1 is the Enum.NormalId.Back side. 0, 0, -1 is the Enum.NormalId.Front side.

(the RaycastResult tyoe includes this under its Normal field)