BasePart
Base class for every physical, 3D part in the world. Anything with a position, size and physics inherits from it.
Properties
17| Name | Type | Access | Description |
|---|---|---|---|
| Transparency | number | readwrite | How see-through the part is, from 0 (fully opaque) to 1 (fully invisible). since 1.6.9-4-alphaRoblox ↗ |
| LocalTransparencyModifier | number | readwrite | A client-only transparency offset layered on top of Transparency. Not replicated to the server. since 1.6.9-4-alphaRoblox ↗ |
| Position | Vector3 | readwrite | The world position of the part's center. since 0.10.0-devRoblox ↗ |
| CFrame | CFrame | readwrite | The position and orientation of the part, as a CFrame. since 0.10.0-devRoblox ↗ |
| Size | Vector3 | readwrite | The dimensions of the part, in studs. since 0.10.0-devRoblox ↗ |
| Color | Color3 | read | The color of the part. since 1.9.4-betaRoblox ↗ |
| Orientation | Vector3 | readwrite | The part's rotation as Euler angles (X, Y, Z), derived from its CFrame. Note: unlike Roblox's degree-based Orientation, this value is in radians, beware of this when performing mathematical operations on it. If you want to ONLY rotate the part, but not freeze it, write to this property instead of the CFrame property! since 1.7.1-alpha |
| Velocity | Vector3 | readwrite | The linear velocity of the part's assembly. Alias of AssemblyLinearVelocity. since 0.7.0-alphaRoblox ↗ |
| AssemblyLinearVelocity | Vector3 | readwrite | The linear velocity of the part's physics assembly, in studs per second. since 0.7.0-alphaRoblox ↗ |
| AssemblyAngularVelocity | Vector3 | readwrite | The angular velocity of the part's physics assembly, in radians per second. since 0.7.0-alphaRoblox ↗ |
| IsNetworkOwner | boolean | read | Whether the local client owns this part's physics (i.e. our client is simulating it). since 0.4.0-alpha |
| NetworkOwnerV3 | number | readwrite | |
| CanCollide | boolean | readwrite | Whether the part physically collides with other parts. since 0.2.5-alphaRoblox ↗ |
| CanTouch | boolean | readwrite | Whether the part fires Touched / TouchEnded events. since 0.2.5-alphaRoblox ↗ |
| CanQuery | boolean | readwrite | Whether the part is considered by spatial queries such as raycasts. since 0.2.5-alphaRoblox ↗ |
| Anchored | boolean | readwrite | Whether the part is immovable by physics. since 0.2.5-alphaRoblox ↗ |
| NetworkIsSleeping | boolean | readwrite | Whether the part's physics assembly is currently asleep (not being simulated). since 0.2.5-alpha |