VehicleSeat
A seat that provides vehicle movement input and physical velocity.
- Creatable
Instance.new("VehicleSeat")- Inherits
- BasePartPVInstanceInstance
- Replication
- Standard
Behavior
VehicleSeat is a seat for controlling a vehicle. It inherits the seating
behavior of Seat and exposes linear and angular velocity values for the
vehicle assembly.
Summary
The vehicle seat's angular velocity around each axis.
The joint surface type on the back face.
The joint surface type on the bottom face.
Whether the seat is disabled for vehicle control.
The joint surface type on the front face.
Whether the VehicleSeat displays its driving interface.
The joint surface type on the left face.
The vehicle seat's linear velocity in studs per second.
The surface material.
The target maximum vehicle speed.
The Humanoid seated in the seat, or nil when unoccupied.
The rendering layer used for this geometry or light.
The joint surface type on the right face.
The steering input reported by the VehicleSeat.
The forward or reverse input reported by the VehicleSeat.
The joint surface type on the top face.
The torque setting used for vehicle propulsion.
The steering response setting for the vehicle.
Properties
AngularVelocity
VehicleSeat.AngularVelocity: Vector3 = Vector3.new(0, 0, 0)The vehicle seat's angular velocity around each axis.
BackSurface
VehicleSeat.BackSurface: Enum.SurfaceType = Enum.SurfaceType.SmoothThe joint surface type on the back face.
BottomSurface
VehicleSeat.BottomSurface: Enum.SurfaceType = Enum.SurfaceType.InletThe joint surface type on the bottom face.
Disabled
VehicleSeat.Disabled: boolean = falseWhether the seat is disabled for vehicle control.
FrontSurface
VehicleSeat.FrontSurface: Enum.SurfaceType = Enum.SurfaceType.SmoothThe joint surface type on the front face.
HeadsUpDisplay
VehicleSeat.HeadsUpDisplay: boolean = trueWhether the VehicleSeat displays its driving interface.
LeftSurface
VehicleSeat.LeftSurface: Enum.SurfaceType = Enum.SurfaceType.SmoothThe joint surface type on the left face.
LinearVelocity
VehicleSeat.LinearVelocity: Vector3 = Vector3.new(0, 0, 0)The vehicle seat's linear velocity in studs per second.
Material
VehicleSeat.Material: Enum.Material = Enum.Material.PlasticThe surface material. Material affects appearance and physical density. See Enum.Material.
MaxSpeed
VehicleSeat.MaxSpeed: number = 25The target maximum vehicle speed.
Occupant
VehicleSeat.Occupant: Humanoid? = nilThe Humanoid seated in the seat, or nil when unoccupied.
RenderLayer
VehicleSeat.RenderLayer: Enum.RenderLayer = Enum.RenderLayer.DefaultThe rendering layer used for this geometry or light.
RightSurface
VehicleSeat.RightSurface: Enum.SurfaceType = Enum.SurfaceType.SmoothThe joint surface type on the right face.
Steer
VehicleSeat.Steer: number = 0The steering input reported by the VehicleSeat.
Throttle
VehicleSeat.Throttle: number = 0The forward or reverse input reported by the VehicleSeat.
TopSurface
VehicleSeat.TopSurface: Enum.SurfaceType = Enum.SurfaceType.StudsThe joint surface type on the top face.
Torque
VehicleSeat.Torque: number = 10The torque setting used for vehicle propulsion.
TurnSpeed
VehicleSeat.TurnSpeed: number = 1The steering response setting for the vehicle.
Inherited members
- Properties
- AnchoredCanCollideCanQueryCanSeparateCanTouchCastShadowCenterOfMassCFrameCollisionFidelityCollisionGroupColorCoordinateFrameCustomPhysicalPropertiesElasticityFaceCountFrictionGravityScaleLockedMassMasslessMaterialSetMaterialVariantPositionReflectanceRotationShapeSizeSmoothingAngleTextureIdTransparencyTriangleCountVertexCountVisibilityMask
- Methods
- ApplyAngularImpulse()ApplyImpulse()ApplyImpulseAtPosition()GetContacts()GetExecutionGroup()GetMass()GetMesh()GetNetworkOwner()GetNetworkOwnershipAuto()GetTouchingParts()GetVelocityAtPosition()Intersect()MakeEditable()Separate()SetMesh()SetNetworkOwner()SetNetworkOwnershipAuto()Subtract()Union()
- Events
- TouchedTouchEnded
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying
Example
local seat = Instance.new("VehicleSeat")
seat.LinearVelocity = Vector3.new(0, 0, -20)
seat.Parent = workspace