Part
The building block. A block, ball or cylinder you can size, colour and make rough, metal or glass; drop a picture on a face and it becomes a decal.
Part is Roblox's Part: Shape is Block, Ball or Cylinder, with Roblox's conventions (a cylinder runs along X, a ball's diameter is its smallest side). Its look beyond Color, Transparency included, comes from the TexturePack it points at; with none it has the plain look. An image file dropped on a Part in a viewport becomes a Decal on the face under the pointer. Size, CFrame, physics and pivots come from BasePart.
Example
local studio = Root.Sandbox.DataModels.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 |
|---|---|---|---|
| Shape | string | "Block" Block, Ball, Cylinder | Also takes an Enum.PartType item, such as Enum.PartType.Ball; reading it still gives a string. |
From BasePart 29
AnchoredApplyAngularImpulseApplyImpulseApplyImpulseAtPositionAssemblyAngularVelocityAssemblyLinearVelocityAssemblyMassAssemblyRootPartCFrameCanCollideColorCustomPhysicalPropertiesEmissionGetMassGetPivotIORMasslessMaterialMetallicOrientationPivotOffsetPivotToPositionRoughnessSizeTexturePackTransmissionTransparencyWorldCFrame
