Seat
Seats a character on contact and reports its Humanoid.
- Creatable
Instance.new("Seat")- Inherits
- BasePartPVInstanceInstance
- Replication
- Standard
Behavior
Seat seats a character when the character touches it. Occupant references the
seated Humanoid. Observe Changed for changes to Occupant.
Use VehicleSeat for vehicle input.
Summary
The seat's angular velocity around each axis.
The joint surface type on the back face.
The joint surface type on the bottom face.
Whether new characters are prevented from sitting.
The joint surface type on the front face.
The joint surface type on the left face.
The seat's linear velocity in studs per second.
The surface material.
The seated Humanoid, or nil when empty.
The rendering layer used for this geometry or light.
The joint surface type on the right face.
The joint surface type on the top face.
Properties
AngularVelocity
Seat.AngularVelocity: Vector3 = Vector3.new(0, 0, 0)The seat's angular velocity around each axis.
BackSurface
Seat.BackSurface: Enum.SurfaceType = Enum.SurfaceType.SmoothThe joint surface type on the back face.
BottomSurface
Seat.BottomSurface: Enum.SurfaceType = Enum.SurfaceType.InletThe joint surface type on the bottom face.
Disabled
Seat.Disabled: boolean = falseWhether new characters are prevented from sitting. Disabling the seat does not eject the current occupant.
FrontSurface
Seat.FrontSurface: Enum.SurfaceType = Enum.SurfaceType.SmoothThe joint surface type on the front face.
LeftSurface
Seat.LeftSurface: Enum.SurfaceType = Enum.SurfaceType.SmoothThe joint surface type on the left face.
LinearVelocity
Seat.LinearVelocity: Vector3 = Vector3.new(0, 0, 0)The seat's linear velocity in studs per second.
Material
Seat.Material: Enum.Material = Enum.Material.PlasticThe surface material. Material affects appearance and physical density. See Enum.Material.
Occupant
Seat.Occupant: Humanoid? = nilThe seated Humanoid, or nil when empty. Read-only.
RenderLayer
Seat.RenderLayer: Enum.RenderLayer = Enum.RenderLayer.DefaultThe rendering layer used for this geometry or light.
RightSurface
Seat.RightSurface: Enum.SurfaceType = Enum.SurfaceType.SmoothThe joint surface type on the right face.
TopSurface
Seat.TopSurface: Enum.SurfaceType = Enum.SurfaceType.StudsThe joint surface type on the top face.
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("Seat")
seat.Anchored = true
seat.Disabled = true
seat.Parent = workspace