VehicleSeat
Inherits: Seat
VehicleSeat is a Seat that enables vehicle driving. When a player sits in a VehicleSeat, any Motor instances attached to parts that are welded to this seat (directly or transitively) are treated as drive wheels. Player forward/backward input is mapped to motor velocity and left/right input steers by inverting wheel motors on the opposing side.
Properties
Maximum drive speed of the vehicle in studs per second. Motors will be scaled to reach this speed.
How sharply the vehicle turns. A value of 1 fully reverses the opposite side's motors when steering; lower values produce softer turns.
Properties
The character currently occupying this seat.
Properties
Whether the Part casts a shadow.
Whether characters can climb this Part.
The color of the Part.
The material of the part.
The shape of the part.
The size of the Part, in studs
Properties
Indicates whether the PhysicsBody is anchored in place.
The angular velocity of the PhysicsBody.
Indicates whether the PhysicsBody can collide with other objects.
Indicates whether the PhysicsBody participates in dynamic simulation.
The linear velocity of the PhysicsBody.
The client ID that has local physics authority over this body. 0 means the server simulates it.
Functions
Returns an array of all PhysicsInstances currently touching this PhysicsInstance.
Removes any welds between this PhysicsBody and the other PhysicsBody.
Properties
The coordinate matrix (CMatrix) representing the DynamicInstance's position and rotation transform in the world, in local space.
The position of the DynamicInstance. This is a shortcut for setting CMatrix.Position.
The rotation of the DynamicInstance. This is a shortcut for setting CMatrix.Rotation.
The rotation of the DynamicInstance in Euler angles (degrees). This is a shortcut for setting Rotation using Euler angles.
Properties
The transparency of the VisualInstance.
Whether the VisualInstance is visible in the game world.
Properties
Whether this Instance or any of its descendants should be included when saving or copying via Clone()
The unique identifier for this Instance.
The name of this Instance.
The parent of this Instance in the hierarchy.
The sort index of this Instance among its siblings. If this Instance has no parent, this value is ignored.
Functions
Re-attaches an existing component ref (used by detach-undo to preserve identity).
Creates a deep clone of this Instance and all its descendants.
Removes this Instance, and all its descendants, from the DataModel, and locks its parent property.
Schedules this Instance to be destroyed after the specified delay in seconds. This function will error if called multiple times.
Detaches a specific component by reference. Use this to remove a broken component, which has no live file to identify it by.
Returns an array of the children of this Instance.
Returns the path of the script component at , or an empty string if the script file no longer exists.
Determines if this Instance is a descendant of the specified ancestor Instance.