PartType
Specifies the geometric shape of a part.
Access items through Enum.PartType.
Behavior
Enum.PartType sets a part's Shape for rendering and collision.
Size defines the bounding dimensions in studs. A ball uses the smallest
dimension as its diameter.
Items
A sphere.
A rectangular solid.
A cylinder along the local X axis.
A wedge with one sloped face.
A wedge sloped along two axes.
A climbable lattice.
A triangular prism.
A four-sided pyramid filling the bounding box.
A ramp whose slope runs the full length of the part.
A ramp with the slope reversed.
Ball
A sphere.
Block
A rectangular solid. The default part shape.
Cylinder
A cylinder along the local X axis.
Wedge
A wedge with one sloped face.
CornerWedge
A wedge sloped along two axes.
Truss
A climbable lattice.
Prism
A triangular prism.
Pyramid
A four-sided pyramid filling the bounding box.
Ramp
A ramp whose slope runs the full length of the part.
InvertedRamp
A ramp with the slope reversed.
Example
local ball = Instance.new("Part")
ball.Shape = Enum.PartType.Ball
ball.Size = Vector3.new(4, 4, 4)