Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
AvatarSettingsHitAndTouchDetectionMode
Determines whether BasePart.CanTouch (hit detection) and BasePart.CanQuery (spatial queries) are routed to the individual avatar body parts or to the single collider part. Only takes effect when AvatarCollisionRules.CollisionMode is AvatarSettingsCollisionMode.SingleCollider; in other collision modes it is ignored.
Items
| Name | Value | Description |
|---|---|---|
| UseParts | 0 | Individual avatar body parts handle Touched events and spatial queries (CanTouch and CanQuery enabled on body parts) while the single collider part has CanTouch and CanQuery disabled. This is the default value for AvatarCollisionRules.HitAndTouchDetectionMode. |
| UseCollider | 1 | The single collider part handles Touched events and spatial queries (CanTouch and CanQuery enabled on the collider) while all individual body parts have CanTouch and CanQuery disabled. |
UseParts
Individual avatar body parts handle Touched events and spatial queries (CanTouch and CanQuery enabled on body parts) while the single collider part has CanTouch and CanQuery disabled. This is the default value for AvatarCollisionRules.HitAndTouchDetectionMode.
| Field | Value |
|---|---|
| value | 0 |
UseCollider
The single collider part handles Touched events and spatial queries (CanTouch and CanQuery enabled on the collider) while all individual body parts have CanTouch and CanQuery disabled.
| Field | Value |
|---|---|
| value | 1 |