GBX.lua.Part (Object): Difference between revisions
From Goodblox Wiki
Jump to navigationJump to search
Pizzaboxer (talk | contribs) m (Pizzaboxer moved page Part to RBX.lua.Part (Object)) |
mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{CatUp|Class reference}} | {{CatUp|Class reference}} | ||
The '''Part''' object is a physical object. It, when it is in the [[GBX.lua.Workspace (Service)|Workspace]], will move and interact with other '''parts'''. It can have bonds formed with other '''parts''', so that the two parts stay in the same relative position. | |||
__NOTOC__ | __NOTOC__ | ||
==Functions== | ==Functions== | ||
In addition to the global functions, the Part also has the following functions: | In addition to the global functions, the Part also has the following functions: | ||
Line 14: | Line 12: | ||
In addition to the global properties, the Part also has these properties: | In addition to the global properties, the Part also has these properties: | ||
*[[Anchored]] | *[[Anchored (Property)|Anchored]] | ||
*[[BrickColor]] | *[[BrickColor (Property)|BrickColor]] | ||
*[[CFrame]] | *[[CFrame (Property)|CFrame]] | ||
*[[CanCollide]] | *[[CanCollide (Property)|CanCollide]] | ||
*[[Controller]] | *[[Controller (Property)|Controller]] | ||
*[[ControllerFlagShown]] | *[[ControllerFlagShown (Property)|ControllerFlagShown]] | ||
*[[Elasticity]] | *[[Elasticity (Property)|Elasticity]] | ||
*[[Friction]] | *[[Friction (Property)|Fricton]] | ||
*[[Locked]] | *[[Locked (Property)|Locked]] | ||
*[[NetworkOwner]] | *[[NetworkOwner (Property)|NetworkOwner]] | ||
*[[Position]] | *[[Position (Property)|Position]] | ||
*[[Reflectance]] | *[[Reflectance (Property)|Reflectance]] | ||
*[[RotVelocity]] | *[[RotVelocity (Property)|RotVelocity]] | ||
*[[Shape]] | *[[Shape (Property)|Shape]] | ||
*[[Size]] | *[[Size (Property)|Size]] | ||
*[[Transparency]] | *[[Transparency (Property)|Transparence]] | ||
*[[Velocity]] | *[[Velocity (Property)|Velocity]] | ||
*[[formFactor]] | *[[FormFactor (Property)|formFactor]] | ||
==Surfaces== | ==Surfaces== | ||
Line 72: | Line 70: | ||
* [[Touched]] | * [[Touched]] | ||
[[Category: | [[Category:GoodBlox Lua Objects]] |
Latest revision as of 20:13, 23 September 2021
The Part object is a physical object. It, when it is in the Workspace, will move and interact with other parts. It can have bonds formed with other parts, so that the two parts stay in the same relative position.
Functions
In addition to the global functions, the Part also has the following functions:
Properties
In addition to the global properties, the Part also has these properties:
- Anchored
- BrickColor
- CFrame
- CanCollide
- Controller
- ControllerFlagShown
- Elasticity
- Fricton
- Locked
- NetworkOwner
- Position
- Reflectance
- RotVelocity
- Shape
- Size
- Transparence
- Velocity
- formFactor
Surfaces
Since the Part is a 3D rendered object, it has surface properties and inputs. There is a Parameter A, B a Surface and a SurfaceInput for each of the 6 sides. Since they all work the same, they are only documented once. Simply place the name of the side in front of the property:
Events
In addition to the global Events, the Part also has these events::