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

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

Summary

Properties

Sets the type of shape the object has.

NOT REPLICATED

Methods

Events

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.

Code Samples

Create a Part in a Script

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

Methods

Events