GBX.lua.Seat (Object): Difference between revisions
(Created page with "{{CatUp|Class reference}} {{Preliminary}} The ''Seat'' object creates a brick that when touched by a player will anchor their torso to the brick and move their arms and legs f...") |
mNo edit summary |
||
Line 4: | Line 4: | ||
The Seat is a variation of the [[GBX.lua.Part (Object)|Part]] object, so it includes all of the same functions, properties and events as the [[GBX.lua.Part (Object)|Part]]. | The Seat is a variation of the [[GBX.lua.Part (Object)|Part]] object, so it includes all of the same functions, properties and events as the [[GBX.lua.Part (Object)|Part]]. | ||
==Functions== | ==Functions== | ||
In addition to the standard functions, the Seat also has the following functions: | In addition to the standard functions, the Seat also has the following functions: | ||
Line 9: | Line 10: | ||
* [[GetMass]] | * [[GetMass]] | ||
* [[MakeJoints]] | * [[MakeJoints]] | ||
==Properties== | ==Properties== | ||
In addition to the basic global properties, the Seat also has these properties: | In addition to the basic global properties, the Seat also has these properties: | ||
Line 66: | Line 68: | ||
* [[Touched]] | * [[Touched]] | ||
[[Category: | [[Category:GoodBlox Lua Objects]] | ||
[[Category:Preliminary Objects]] |
Latest revision as of 20:14, 23 September 2021
Preliminary: This item was still under development in this version of Roblox. Use only for experimental work.
The Seat object creates a brick that when touched by a player will anchor their torso to the brick and move their arms and legs forward, in a sitting position just above the brick. This allows for the creation of vehicles that players can sit in and not be flung about the cabin/deck of the vehicle.
The Seat is a variation of the Part object, so it includes all of the same functions, properties and events as the Part.
Functions
In addition to the standard functions, the Seat also has the following functions:
Properties
In addition to the basic global properties, the Seat also has these properties:
- Anchored
- BrickColor
- CFrame
- CanCollide
- Controller
- ControllerFlagShown
- Elasticity
- Friction
- Locked
- Position
- Reflectance
- RotVelocity
- Shape
- Size
- Transparency
- Velocity
- formFactor
Surfaces
Since the Seat 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 Seat also has these events::