This site is no longer kept up to date. It has been superseded by the Roblox API Reference. Please update your bookmarks.
The BasePart is an abstract class that represents a physical object. When it is in the Workspace, it will move and interact with other BaseParts.
Tags: notbrowsable
Returns | Function | History | |
---|---|---|---|
void | BreakJoints ( ) | ||
bool | CanCollideWith ( Instance part ) | (+0.287) | |
Tuple | CanSetNetworkOwnership ( ) | (+0.208) | |
Objects | GetConnectedParts ( bool recursive = false ) | (+0.113) | |
Objects | GetJoints ( ) | (+0.113, −0.115, +0.317) | |
float | GetMass ( ) | ||
Instance | GetNetworkOwner ( ) | (+0.200) | |
bool | GetNetworkOwnershipAuto ( ) | (+0.200) | |
Instance | GetRootPart ( ) | (+0.130) | |
Objects | GetTouchingParts ( ) | (+0.196) | |
bool | IsGrounded ( ) | (+0.113) | |
void | MakeJoints ( ) | ||
Instance | Negate ( ) | (+0.331, −0.352) | |
bool | Resize ( NormalId normalId, int deltaAmount ) | ||
Objects | Separate ( ) | (+0.335, −0.352) | |
void | SetNetworkOwner ( Instance playerInstance = nil ) | (+0.200) | |
void | SetNetworkOwnershipAuto ( ) | (+0.200) | |
Instance | UnionWith ( Instance part ) | (+0.331, −0.352) | |
CoordinateFrame | GetRenderCFrame ( ) | (+0.187) | |
void | breakJoints ( ) | (+0.49) | |
float | getMass ( ) | (+0.48) | |
void | makeJoints ( ) | (+0.48) | |
bool | resize ( NormalId normalId, int deltaAmount ) | (+0.50) |
Returns | YieldFunction | History | |
---|---|---|---|
Instance | SubtractAsync ( Objects parts, CollisionFidelity collisionfidelity = Default ) | (+0.352) | |
Instance | UnionAsync ( Objects parts, CollisionFidelity collisionfidelity = Default ) | (+0.352) |
Event | History | |
---|---|---|
NetworkOwnerChanged ( SystemAddress systemAddress ) | (+0.159, −0.163) | |
TouchEnded ( Instance otherPart ) | ||
Touched ( Instance otherPart ) | ||
LocalSimulationTouched ( Instance part ) | ||
OutfitChanged ( ) | ||
StoppedTouching ( Instance otherPart ) | ||
touched ( Instance otherPart ) | (+0.68) |
Enum | History | |
---|---|---|
CollisionFidelity | (+0.224) | |
InputType | ||
Material | ||
NormalId | ||
SurfaceType |
BaseParts are the basic building blocks of any Roblox place. Commonly known as "bricks", you'll see these the most often of any other instance, as almost every place is built out of these. It is possible to stretch a BasePart to very large sizes and use them for baseplates, or make them very small and use them to create cool looking Tools.
A BasePart instance can be edited using the various studio tools. It is available via either the insert menu, or the Object Insert menu. It can also be created using the 'Instance.new()' function.
Using Mesh objects, such as SpecialMesh, BlockMesh, or CylinderMesh, you can change the shape of BaseParts. Using Decal objects, you can place pictures on the surfaces of BaseParts. Sparkles, Smoke, and Fire will provide particle effects when parented under a BasePart. Using JointInstances, a BasePart can have bonds formed with another BasePart, so that the two stay in the same relative position.
There are many scripting opportunities using the BasePart. Many of the other scripting objects, such as BodyMovers, operate inside of a BasePart. Editing the BasePart's properties through a script can result in a lot of fun opportunities.
Version History:(+0.220)
Tags: readonly
Tags: readonly
Version History:(+0.61)
Deprecated: This member is deprecated.
Tags: readonly
Version History:(+0.331, −0.352)
Tags: LocalUserSecurity
Version History:(+0.187)
Deprecated: This member is deprecated.
Version History:(+0.50)
Deprecated: This member is deprecated.
Version History:(+0.352)
Version History:(+0.352)
Version History:(+0.159, −0.163)
Tags: LocalUserSecurity
Deprecated: This member is deprecated.
Deprecated: This member is deprecated.