Roblox UtilitiesDevlHub Roblox Documentation

Class

Part

Memory category
BaseParts
Subclasses
5

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

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

Properties 1#

ShapePartTypeSets the overall shape of the object.ReadSafeNotReplicated

Shape: PartType#

NotReplicatedReadSafe

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.

Inherited members#

Inherited from FormFactorPart 2
Properties (2)

FormFactor, formFactor

Inherited from BasePart 106
Inherited from PVInstance 4
Properties (2)

Origin, Pivot Offset

Methods (2)

GetPivot, PivotTo

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed

Subclasses 5#