Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
PartType
The PartType enum specifies the primitive geometry shape of a Part, assigned through its Shape property. A new Part defaults to Block. The five available shapes are Ball (sphere), Block (rectangular prism), Cylinder (oriented along the X axis), Wedge (a ramp with a slope on one face), and CornerWedge (a ramp with slopes on two perpendicular faces).
Items
| Name | Value | Description |
|---|---|---|
| Ball | 0 | A spherical shape. |
| Block | 1 | A block shape. |
| Cylinder | 2 | A cylinder shape oriented along the X axis. |
| Wedge | 3 | A wedge shape with a slope on one side. |
| CornerWedge | 4 | A wedge shape with slopes on two sides. |
Ball
A spherical shape.
| Field | Value |
|---|---|
| value | 0 |
Block
A block shape.
| Field | Value |
|---|---|
| value | 1 |
Cylinder
A cylinder shape oriented along the X axis.
| Field | Value |
|---|---|
| value | 2 |
Wedge
A wedge shape with a slope on one side.
| Field | Value |
|---|---|
| value | 3 |
CornerWedge
A wedge shape with slopes on two sides.
| Field | Value |
|---|---|
| value | 4 |