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.

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

NameValueDescription
Floor0Detects floor surfaces below the part using the modern detection algorithm; the default value of ControllerPartSensor.SensorMode.
Ladder1Detects ladder surfaces adjacent to the part using the modern piercing-based detection algorithm.
ClassicFloor2Detects floor surfaces below the part using the legacy raycast-based algorithm.
ClassicLadder3Detects 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.

FieldValue
value0

Ladder

Detects ladder surfaces adjacent to the part using the modern piercing-based detection algorithm.

FieldValue
value1

ClassicFloor

Detects floor surfaces below the part using the legacy raycast-based algorithm.

FieldValue
value2

ClassicLadder

Detects ladder surfaces adjacent to the part using the legacy ladder detection algorithm.

FieldValue
value3