Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
SensorMode
The SensorMode enum controls both the type of geometry a ControllerPartSensor targets (floor surfaces or ladder rungs) and the detection algorithm it applies. SensorMode.Floor and SensorMode.Ladder use the current sensing algorithms, while SensorMode.ClassicFloor and SensorMode.ClassicLadder preserve legacy behavior. The default value of ControllerPartSensor.SensorMode is SensorMode.Floor.
Items
| Name | Value | Description |
|---|---|---|
| Floor | 0 | Detects floor surfaces below the part using the modern detection algorithm; the default value of ControllerPartSensor.SensorMode. |
| Ladder | 1 | Detects ladder surfaces adjacent to the part using the modern piercing-based detection algorithm. |
| ClassicFloor | 2 | Detects floor surfaces below the part using the legacy raycast-based algorithm. |
| ClassicLadder | 3 | Detects ladder surfaces adjacent to the part using the legacy ladder detection algorithm. |
Floor
Detects floor surfaces below the part using the modern detection algorithm; the default value of ControllerPartSensor.SensorMode.
| Field | Value |
|---|---|
| value | 0 |
Ladder
Detects ladder surfaces adjacent to the part using the modern piercing-based detection algorithm.
| Field | Value |
|---|---|
| value | 1 |
ClassicFloor
Detects floor surfaces below the part using the legacy raycast-based algorithm.
| Field | Value |
|---|---|
| value | 2 |
ClassicLadder
Detects ladder surfaces adjacent to the part using the legacy ladder detection algorithm.
| Field | Value |
|---|---|
| value | 3 |