FindFirstChild returns type Instance instead of Instance? and RaycastResult.Instance is type any instead of Instance

Currently FindFirstChild returns Instance as its type, this should be corrected to Instance? as FindFirstChild calls do not gaurantee a result.
image

Also RaycastResult.Instance returns type any instead of Instance or BasePart | Terrain.

5 Likes

Thanks for the report! I filed a ticket in our internal database and we’ll follow up when we have an update for you.

Noting that Terrain inherits from BasePart, only BasePart is necessary

1 Like