The BasePart class is a structural class that holds all the properties, methods and events common to part classes, such as Part, WedgePart, CornerWedgePart, TrussPart, SpawnLocation, Seat, VehicleSeat,
SkateboardPlatform, and FlagStand. The most common is the simple part. While many of these classes extend the BasePart class directly, some extend the FormFactorPart class, which is itself a subclass of BasePart. The BasePart class cannot be instantiated.
Determines whether or not physics acts upon the Part. If true, part stays 'Anchored' in space, not moving regardless of any collision/forces acting upon it. If false, physics works normally on the part.
The color of a part is set by the value of its BrickColor property. Brick colors are a set of pre-defined colors that the user may choose from to color parts, teams and other things in the ROBLOX engine.
Contains information regarding the Part's position and a matrix that defines the Part's rotation. Can read/write.
Determines whether physical interactions with other Parts are respected. If true, will collide and react with physics to other Parts. If false, other parts will pass thru instead of colliding.
Vector3 CenterOfMass [readonly]
The id of the collision group this basepart is in. This can be used with PhysicsService.
The Color3 of the BasePart.
A container that allows you to edit the physical properties of this basepart.
A float value ranging from 0.0f to 1.0f. Sets how much the Part will rebound against another. a value of 1 is like a superball, and 0 is like a lead block.
A float value ranging from 0.0f to 1.0f. Sets how much the Part will be able to slide. a value of 1 is no sliding, and 0 is no friction, so infinite sliding.
Determines whether building tools (in-game and studio) can manipulate this Part. If true, no editing allowed. If false, editing is allowed.
Specifies the look and feel the Part should have. Note: this does not define the color the Part is, see BrickColor for that.
Rotation around X, Y, and Z axis. Rotations applied in YXZ order.
A part's position can be changed by modifying the value of this property.
Specifies how shiny the Part is. A value of 1 is completely reflective (chrome), while a value of 0 is no reflectance (concrete wall)
Sets the value for the smallest change in size allowable by the Resize(NormalId, int) function.
Faces ResizeableFaces [readonly]
Sets the value for the faces allowed to be resized by the Resize(NormalId, int) function.
This property defines the rotational velocity of the part it belongs to.
The part's rotation.
This property defines the size of the part it belongs to.
This property defines how many times more dense than ROBLOX's water the part it belongs to is. Its value depends on the part's material.
Sets how visible an object is. A value of 1 makes the object invisible, while a value of 0 makes the object opaque.
How fast the Part is traveling in studs/second. This property is NOT recommended to be modified directly, unless there is good reason. Otherwise, try using a BodyForce to move a Part.
BrickColor brickColor [deprecated]
This property is deprecated and the BrickColor property should be used instead.
The surface input properties are used to specify an input for a specific surface.
The surface type properties can be used to change the appearance of a specific surface of a part. Surface types also change the behavior of parts with other parts they are sticking to.
The surface parameter properties are used to give parameters to certain surfaces of a part. These parameters are used, for example, by the motor part surface.
Destroys SurfaceJoints with all parts that are touching this Instance (including internal joints in the Instance, as in a Model).
Objects GetConnectedParts(bool recursive = false)
Objects GetJoints() [RobloxPlaceSecurity]
Returns a number that is the mass of this Instance. Mass of a Part is immutable, and is changed only by the size of the Part.
CoordinateFrame GetRenderCFrame() [deprecated]
Returns an array of all the parts touching this part.
Returns whether or not this BasePart is connected to an Anchored BasePart.
Creates the appropriate SurfaceJoints with all parts that are touching this Instance (including internal joints in the Instance, as in a Model). This uses the SurfaceTypes defined on the surfaces of parts to create the appropriate welds.
bool Resize(NormalId normalId, int deltaAmount)
Resizes a Part in the direction of the face defined by 'NormalId', by the amount specified by 'deltaAmount'. If the operation will expand the part to intersect another Instance, the part will not resize at all. Return true if the call is successful, false otherwise.
Deprecated. Use BreakJoints instead.
Use GetMass instead.
Use MakeJoints instead.
bool resize(NormalId normalId, int deltaAmount) [deprecated]
SubtractAsync(Objects parts, CollisionFidelity collisionfidelity = Default)
UnionAsync(Objects parts, CollisionFidelity collisionfidelity = Default)
Deprecated. Use Touched instead.
This event will be fired when one of the visual properties of the part it belongs to is changed.
Deprecated. Use TouchEnded instead.
Fired when the part stops touching another part
This event will be fired by the game engine when a part touches the part to which the event belongs.
This event is deprecated. The Touched event should be used instead.