Part

Show Deprecated

The Part object is a type of BasePart. It comes in three different primitive shapes: Ball, Cylinder, or Block.

Code Samples

Create a Part in a Script

1local part = Instance.new("Part")
2part.Name = "JurassicPart"
3part.Anchored = true
4part.Shape = Enum.PartType.Ball
5part.Color = Color3.new(1, 1, 1)
6part.Parent = workspace -- Put the part into the Workspace

Summary

Properties

Sets the type of shape the object has.

NOT REPLICATED

Events

Methods

Properties

Not Replicated

The Shape property sets the type of shape the object has.

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

Shape/ValueDescription
BallA spherical shape, like a basketball.
CylinderA rod-like shape, like a tin can.
BlockThe default, brick shape.

To obtain custom part shapes, you can use a MeshPart instead of a Part.

Events

Methods