Skip to content

Class · inherits FormFactorPart

Part

Official docs ↗

A common type of BasePart that comes in different primitive shapes.

About Part

The Part object is a type of BasePart. It comes in five different primitive shapes: Ball, Block, Cylinder, Wedge, and CornerWedge.

Properties 1

  • Shape: PartTypeNotReplicatedSets the overall shape of the object.

    The Shape property sets the overall shape of the object to one of a predetermined list of built-in shapes.

    The PartType enum controls the shape value, and has five possible shapes:

    Shape/Value Description
    Ball A spherical shape.
    Block A block shape.
    Cylinder A cylinder shape.
    Wedge A wedge shape with a slope on one side.
    CornerWedge A wedge shape with slopes on two sides.

    MeshPart and solid modeling can be used to obtain completely custom part shapes.

    Collisions between balls, blocks, and wedges, and corner wedges are exact, whereas collisions between terrain, cylinders, TriangleMeshes, and other geometry types are approximations. This means that the ball shape can be useful to create stable colliders for car wheels.

Part also has every member of FormFactorPart. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.