Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
SurfaceConstraint
This item is deprecated and is replaced by the SurfaceType enum.
Deprecated: This item is deprecated and is replaced by the SurfaceType enum.
Items
| Name | Value | Description |
|---|---|---|
| None | 0 | No surface constraint. |
| Hinge | 1 | Makes the side appear with a yellow hinge. Any part connected to this hinge will stick to the side and rotate using physics. |
| SteppingMotor | 2 | Functions identically to a motor. It may have functioned differently in the past, but that functionality no longer seems to exist. |
| Motor | 3 | Acts the same as a Hinge, but has a grey ring around it and automatically rotates any part connected to it. |
None
No surface constraint.
| Field | Value |
|---|---|
| value | 0 |
Hinge
Makes the side appear with a yellow hinge. Any part connected to this hinge will stick to the side and rotate using physics.
| Field | Value |
|---|---|
| value | 1 |
SteppingMotor
Functions identically to a motor. It may have functioned differently in the past, but that functionality no longer seems to exist.
| Field | Value |
|---|---|
| value | 2 |
Motor
Acts the same as a Hinge, but has a grey ring around it and automatically rotates any part connected to it.
| Field | Value |
|---|---|
| value | 3 |