BasePart

Part and MeshPart share a place, a size, a colour, a look and Roblox-style physics, so a part can fall, collide and stack.

BasePart is abstract. CFrame and Size place it, Color tints it, and TexturePack points at the TexturePack that holds the rest of its look. Parts are Anchored by default. Untick Anchored and it falls, collides and stacks in Play (F5) and in renders. PivotTo, GetPivot and ApplyImpulse work as in Roblox. Key Dissolve or Shatter to eat it away or break it apart; Wetness, Leaves Tracks and Sky Portal tie it into weather, snow and light.

Properties

Physics

NameTypeDefaultDescription
AnchoredbooleantrueUntick it and the part falls onto the parts of its DataModel when you press Play or render.
CanCollidebooleantrueOff, an unanchored part falls through everything and an anchored one isn't in the world.
MasslessbooleanfalseGives the part no mass in its assembly, unless every part in it is massless.

Physics Details

AssemblyAngularVelocityVector30, 0, 0The starting angular velocity; in Play, scripts read the velocity now and a write sets it.
AssemblyLinearVelocityVector30, 0, 0The starting velocity; in Play, scripts read the velocity now and a write sets it.
Densitynumber0.7
Properties window only; 0.0001 to 100
Frictionnumber0.3
Properties window only; 0 to 2
Combines with the touching part's friction like Roblox, as a weighted average of the two.
Elasticitynumber0.5
Properties window only; 0 to 1
Combines with the touching part's elasticity like Roblox, as a weighted average of the two.
FrictionWeightnumber1
Properties window only; 0 to 100
ElasticityWeightnumber1
Properties window only; 0 to 100

Scripts

AssemblyMassnumberscripts only
AssemblyRootPartBasePartscripts only
CustomPhysicalPropertiesPhysicalProperties?scripts onlyDensity, friction, elasticity and their weights from PhysicalProperties.new; nil means Plastic's.
Material(Material | string)scripts onlyKept so old scripts keep working; it forwards to the Material of the part's TexturePack.
Transparencynumberscripts onlyA plain member, not deprecated, that forwards to the TransparencyValue of the part's TexturePack.
WorldCFrameCFramescripts onlyThe part's CFrame in world space; its CFrame is the local one.

Surfaces

BackSurfacestringSmooth
Smooth, Glue, Weld, Studs, Inlet, Universal, Hinge, Motor, SteppingMotor, SmoothNoOutlines
BottomSurfacestringSmooth
Smooth, Glue, Weld, Studs, Inlet, Universal, Hinge, Motor, SteppingMotor, SmoothNoOutlines
FrontSurfacestringSmooth
Smooth, Glue, Weld, Studs, Inlet, Universal, Hinge, Motor, SteppingMotor, SmoothNoOutlines
LeftSurfacestringSmooth
Smooth, Glue, Weld, Studs, Inlet, Universal, Hinge, Motor, SteppingMotor, SmoothNoOutlines
RightSurfacestringSmooth
Smooth, Glue, Weld, Studs, Inlet, Universal, Hinge, Motor, SteppingMotor, SmoothNoOutlines
TopSurfacestringSmooth
Smooth, Glue, Weld, Studs, Inlet, Universal, Hinge, Motor, SteppingMotor, SmoothNoOutlines

Transform

CFrameCFrameRelative to the chain of NullObjects above the part, up to its DataModel.
OrientationVector3The rotation half of the part's CFrame, hidden from Properties.
PositionVector3Kept hidden beside the part's CFrame; Properties never shows it, but old wires into it keep working.
SizeVector34, 1, 2A MeshPart's mesh is normalised to its bounding box and stretched to this Size, like Roblox.

Surface

CameraOnlyEmissionbooleanfalse
CastShadowbooleantrueOff, the part casts no shadow in Solid and Rendered's shadow rays pass through it.
Dissolvenumber0
0 to 1
Eats the surface away in noisy holes with a glowing rim and bits flying off, in Solid and Rendered; 0 draws as before, 1 is gone.
DoubleSidedboolean
LeavesTracksbooleanfalseMakes the part leave footprints in snow, mud, sand and grass; on a Model it covers every part inside.
Reflectancenumber0
0 to 1
Turns the surface into a mirror, from 0 to 1 as in Roblox; it can be keyed.
SkyPortalbooleanfalseMakes the part a window opening, not a solid: it is in no picture and blocks nothing; size it to the opening.
TexturePackTexturePackPicks the part's TexturePack; the row notes whether only this part uses it or it is shared by several parts.
VertexColorVector31, 1, 1
Wetnessnumber0
0 to 1
EditSurfaceNodesbuttonProperties window onlyOpens the Nodes window on the part's pack, making the pack if needed.
Surface/TextureColor31, 1, 1
Properties window only
Acts exactly like a flat image of this colour; Solid multiplies it by the part's Color.
Surface/NormalMapVector30.5, 0.5, 1
Properties window only
Tilts a MeshPart's surface through its tangents; plain Parts have none, so it does nothing there.
Surface/RoughnessMapnumber0.5
Properties window only; 0 to 1
Surface/MetalnessMapnumber0
Properties window only; 0 to 1
Surface/EmissionMapnumber0
Properties window only; 0 to 1000
Surface/TransparencyMapnumber0
Properties window only; 0 to 1
With an image, the part is see-through where the image is white.
Surface/TransmissionMapnumber0
Properties window only; 0 to 1
Surface/IORMapnumber1.45
Properties window only; 1 to 3
An image feeds it through its red channel: IOR is 1 plus twice the red, so 0 to 1 covers 1 to 3.
Surface/SheenMapnumber0
Properties window only; 0 to 1
Surface/MaterialMaterialProperties window onlyThe Material of the part's TexturePack, edited on the part; the first edit makes a pack if the part has none.

Appearance

ColorColor30.639, 0.635, 0.647Solid multiplies the part's texture by it, so a textured part at the default grey shows its texture at 64%.

Advanced

DissolveDirectionVector30, 0, 0
DissolveEdgeColorColor31, 0.45, 0.1
DissolveEdgeWidthnumber0.08
0 to 1
ShatterDustnumber0.5
0 to 1
ShatterForcenumber1
0 to 10
ShatterPiecesnumber64
2 to 512
ShatterSeednumber0
0 to 100000

Pivot

PivotOffsetCFrameThe part's pivot is its CFrame times this offset.

Shatter

Shatternumber0
0 to 1
Draws the part as flying pieces and dust puffs, from 0 to 1, in Solid and Rendered; it can be keyed.
ShatterStylestringVoxels
Voxels, Chunks
Voxels breaks it into an even grid of cubes; Chunks into random, uneven slabs.

Methods

NameArgumentsReturnsDescription
ApplyAngularImpulse(impulse: Vector3)()
ApplyImpulse(impulse: Vector3)()
ApplyImpulseAtPosition(impulse: Vector3, position: Vector3)()
GetMass()number
GetPivot()CFrame
PivotTo(targetCFrame: CFrame)()Sets the part's CFrame to the target times the inverse of its PivotOffset, or exactly the target with no offset.
From Instance 22

Subclasses