Part
The building block. A block, ball, cylinder or wedge you can size, colour and make rough, metal or glass; drop a picture on a face and it becomes a decal.


After: Four Parts, Shape Block, Ball, Cylinder and Wedge, in plain colours.
Part is Roblox's Part. Its Shape is Block, Ball, Cylinder, Wedge or CornerWedge, with Roblox's conventions (a cylinder runs along X, a ball's diameter is its smallest side, a wedge's slope rises from its bottom front to its top back). Its material, transparency and glow come from its TexturePack; Color, Reflectance, Wetness and Dissolve are its own. An image dropped on a Part becomes a Decal on the face under the pointer. Size, CFrame, physics and pivots come from BasePart.
Example
-- Studio is the scene a new project starts with
local studio = Root.Studio
local function part(name, x)
local p = Instance.new("Part")
p.Name = name
p.Size = Vector3.new(2, 1, 1)
p.CFrame = CFrame.new(x, 5, 0)
p.Parent = studio
return p
end
local a = part("ChainA", -3)
local b = part("ChainB", 4)Properties
| Name | Type | Default | Description |
|---|---|---|---|
| MeshId | string | ||
| Offset | Vector3 | ||
| Scale | Vector3 | ||
| Shape | string | Block Block, Ball, Cylinder, Wedge, CornerWedge | Also takes an Enum.PartType item, such as Enum.PartType.Ball; reading it still gives a string. |
| TextureID | string | ||
| TextureId | string |
From BasePart 48
AnchoredApplyAngularImpulseApplyImpulseApplyImpulseAtPositionAssemblyAngularVelocityAssemblyLinearVelocityAssemblyMassAssemblyRootPartBackSurfaceBottomSurfaceCFrameCameraOnlyEmissionCanCollideCastShadowColorCustomPhysicalPropertiesDissolveDissolveDirectionDissolveEdgeColorDissolveEdgeWidthDoubleSidedFrontSurfaceGetMassGetPivotLeavesTracksLeftSurfaceMasslessMaterialOrientationPivotOffsetPivotToPositionReflectanceRightSurfaceShatterShatterDustShatterForceShatterPiecesShatterSeedShatterStyleSizeSkyPortalTexturePackTopSurfaceTransparencyVertexColorWetnessWorldCFrame
