Incorrect description of RaycastResult.Instance

The RaycastResult API reference has an incorrect description for the RaycastResult.Instance property:

The BasePart or Terrain cell that the ray intersected.

Firstly, Terrain is a BasePart, so mentioning Terrain is unnecessary. Secondly, the Instance property can be an instance that isn’t a BasePart, by using the StudioService:GizmoRaycast method.

Example:

image

(BallSocketConstraint isn’t a BasePart)

5 Likes