Part¶
Parts are physical objects that can be placed in the world.
Inherits BasePart
Methods¶
MovePosition → void
¶
Parameters: position [ Vector3 ]
Moves the part to the specified position while keeping physics in mind.
Example
game["Environment"]["Part"]:MovePosition(Vector3.New(50, 0, 0))
MoveRotation → void
¶
Parameters: rotation [ Vector3 ]
Rotates the part while keeping physics in mind.
Example
game["Environment"]["Part"]:MovePosition(Vector3.New(0, 180, 0))
Properties¶
Anchored : boolean
¶
Specifies whether the part is to be affected by physics or not.
AngularDrag : number
¶
Angular drag (air resistance) of this part.
AngularDrag : number
¶
Angular drag (air resistance) of this part.
AngularVelocity : Vector3¶
Specifies the angular velocity of a part.
CanCollide : boolean
¶
Specifies whether the part can be collided with or not.
Color : Color¶
Specifies the color of a part.
Drag : number
¶
Determines Drag (air resistance) of this part.
Forward : Vector3¶
Returns the forward vector of the part
HideStuds : boolean
¶
Determines whether to display studs on the part or not.
IsSpawn : boolean
¶
Specifies whether the part can be used as a spawn location or not.
Mass : number
¶
Specifies the mass of a part in kilograms.
Material : PartMaterial¶
Specifies the material of the part.
Example
part.Material = PartMaterial.Concrete
Shape : PartShape¶
Specifies the shape of a part.
Example
part.Shape = PartShape.Wedge
UseGravity : boolean
¶
Determines whether this part is affected by gravity or not.
Velocity : Vector3¶
Specifies the velocity of a part.