1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

RaycastFilterType

Used in a RaycastParams object to determine how its FilterDescendantsInstances list will be used.

Items

NameValueDescription
Exclude0Every BasePart in the raycast operation will be considered except those that are descendants of objects in the filter list.
Include1Only BaseParts which are descendants of objects in the filter list will be considered in the raycast operation.

Exclude

Every BasePart in the raycast operation will be considered except those that are descendants of objects in the filter list.

FieldValue
value0

Include

Only BaseParts which are descendants of objects in the filter list will be considered in the raycast operation.

FieldValue
value1