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
| Name | Value | Description |
|---|---|---|
| Exclude | 0 | Every BasePart in the raycast operation will be considered except those that are descendants of objects in the filter list. |
| Include | 1 | Only 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.
| Field | Value |
|---|---|
| value | 0 |
Include
Only BaseParts which are descendants of objects in the filter list will be considered in the raycast operation.
| Field | Value |
|---|---|
| value | 1 |