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

Also RaycastResult.Instance returns type any instead of Instance or BasePart | Terrain.
Currently FindFirstChild returns Instance as its type, this should be corrected to Instance? as FindFirstChild calls do not gaurantee a result.

Also RaycastResult.Instance returns type any instead of Instance or BasePart | Terrain.
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
The type is still wrong on FindFirstChild(). It’s also wrong on the other Instance search methods:
Bumping this, should be resolved by now.
Hi there, thanks for the report! The RaycastResult.Instance type has been updated to Instance (and was also a duplicate of RaycastResult.Instance type is 'any' instead of 'BasePart'). Getting better typing for the various instance finding methods required us to make considerable expansions to data model awareness. We attempted to ship these separately, but ultimately were only able to get them working effectively with the New Type Solver. Fortunately though, I can say that this does appear to be working well in the New Type Solver:

