Class
VehicleSeat
A seat object that can be used to control a vehicle.
The VehicleSeat objects welds a player to the seat when the player touches
the seat. It then forwards the movement inputs to any connected motor joints,
allowing control of a vehicle.
While VehicleSeat is great for making simple vehicles they do have some
limitations. Movement control will only detect motors connected directly to
the vehicle seat, or through another rigid connection. This means that if you
have a wheel connected to a beam which is then welded to the seat it will work
fine, however if you have the wheel connected to a part, which is connected by
a hinge to the rest of the car, it will not work.
Properties 11#
AreHingesDetectedint | Displays how many hinges are detected by the VehicleSeat. Useful for
debugging vehicle designs.ReadSafeReadOnlyNotReplicated |
Disabledboolean | Toggles whether the VehicleSeat is active or not.ReadSafe |
HeadsUpDisplayboolean | If true, a UI speed bar will be displayed on screen that tells you what
speed the vehicle is moving at.ReadSafe |
MaxSpeedfloat | The maximum speed that can be attained.ReadSafe |
OccupantHumanoid | The Humanoid that is sitting in the seat.ReadSafeReadOnlyNotReplicated |
Steerint | The direction of movement, tied to left and right movement inputs.ReadSafeDeprecatedNotReplicated |
SteerFloatfloat | The left-to-right movement float, tied to left and right movement inputs.ReadSafe |
Throttleint | The direction of throttle, tied to forward and backward movement inputs.ReadSafeDeprecatedNotReplicated |
ThrottleFloatfloat | The forward-to-reverse throttle float, tied to forward and backward movement inputs.ReadSafe |
Torquefloat | How fast the vehicle will be able to attain
MaxSpeed.ReadSafe |
TurnSpeedfloat | The speed at which the vehicle will turn. Higher numbers can cause problems and are not necessarily better.ReadSafe |
AreHingesDetected: int#
ReadOnlyNotReplicatedReadSafe
Displays how many hinges are detected by the VehicleSeat. Useful for
debugging vehicle designs.
Disabled: boolean#
ReadSafe
Toggles whether the VehicleSeat is active or not. If the seat is
disabled, it will not automatically weld a character to it on collision
and will not allow a character to control the connected vehicle.
HeadsUpDisplay: boolean#
ReadSafe
If true, a UI speed bar will be displayed on screen that tells you what
speed the vehicle is moving at.
MaxSpeed: float#
ReadSafe
The maximum speed that can be attained.
Occupant: Humanoid#
ReadOnlyNotReplicatedReadSafe
The Humanoid that is sitting in the seat.
Steer: int#
NotReplicatedReadSafeDeprecated
Deprecated. This property is no longer replicated and has been deprecated in favor of
SteerFloat which is a float variant and
should be used instead.
The direction of movement, tied to left and right movement inputs. Can be
either 1 (right), 0 (straight), or -1 (left). Will refresh back to
0 unless constantly set.
SteerFloat: float#
ReadSafe
The left-to-right movement float, tied to left and right movement inputs.
Can range between 1 (right) and -1 (left). Will refresh back to 0
(straight) unless constantly set.
Throttle: int#
NotReplicatedReadSafeDeprecated
Deprecated. This property is not longer replicated and has been deprecated in favor of
ThrottleFloat which is a float variant
and should be used instead.
The direction of throttle, tied to forward and backward movement inputs.
Can be either 1 (forward), 0 (null), or -1 (reverse). Will refresh
back to 0 unless constantly set.
ThrottleFloat: float#
ReadSafe
The forward-to-reverse throttle float, tied to forward and backward
movement inputs. Can range between 1 (forward) and -1 (reverse). Will
refresh back to 0 (null) unless constantly set.
Torque: float#
ReadSafe
How fast the vehicle will be able to attain
MaxSpeed. The greater the number, the faster
it will reach the maximum speed.
TurnSpeed: float#
ReadSafe
The speed at which the vehicle will turn. Higher numbers can cause problems and are not necessarily better.
Methods 1#
Inherited members#
Inherited from BasePart 106
Properties (69)
Anchored, AssemblyAngularVelocity, AssemblyCenterOfMass, AssemblyLinearVelocity, AssemblyMass, AssemblyRootPart, AudioCanCollide, BackParamA, BackParamB, BackSurface, BackSurfaceInput, BottomParamA, BottomParamB, BottomSurface, BottomSurfaceInput, BrickColor, brickColor, CanCollide, CanQuery, CanTouch, CastShadow, CenterOfMass, CFrame, CollisionGroup, CollisionGroupId, Color, CurrentPhysicalProperties, CustomPhysicalProperties, Elasticity, EnableFluidForces, ExtentsCFrame, ExtentsSize, Friction, FrontParamA, FrontParamB, FrontSurface, FrontSurfaceInput, LeftParamA, LeftParamB, LeftSurface, LeftSurfaceInput, LocalTransparencyModifier, Locked, Mass, Massless, Material, MaterialVariant, Orientation, PivotOffset, Position, ReceiveAge, Reflectance, ResizeableFaces, ResizeIncrement, RightParamA, RightParamB, RightSurface, RightSurfaceInput, RootPriority, Rotation, RotVelocity, Size, SpecificGravity, TopParamA, TopParamB, TopSurface, TopSurfaceInput, Transparency, Velocity
Methods (32)
AngularAccelerationToTorque, ApplyAngularImpulse, ApplyImpulse, ApplyImpulseAtPosition, BindToCollisionSummaries, BreakJoints, breakJoints, CanCollideWith, CanSetNetworkOwnership, GetClosestPointOnSurface, GetConnectedParts, GetJoints, GetMass, getMass, GetNetworkOwner, GetNetworkOwnershipAuto, GetNoCollisionConstraints, GetRenderCFrame, GetRootPart, GetTouchingParts, GetVelocityAtPosition, IntersectAsync, IsGrounded, MakeJoints, makeJoints, Resize, resize, SetNetworkOwner, SetNetworkOwnershipAuto, SubtractAsync, TorqueToAngularAcceleration, UnionAsync
Events (5)
LocalSimulationTouched, OutfitChanged, StoppedTouching, Touched, TouchEnded
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild