Learn
Motor Sınıfı
Seat

*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.


Özet
Yöntemler
Sit(humanoid: Instance):()
Devralınan Üyeler
Kod Örnekleri
Oturum Sahibi Tespiti
local Players = game:GetService("Players")
local seat = Instance.new("Seat")
seat.Anchored = true
seat.Position = Vector3.new(0, 1, 0)
seat.Parent = workspace
local currentPlayer = nil
local function onOccupantChanged()
local humanoid = seat.Occupant
if humanoid then
local character = humanoid.Parent
local player = Players:GetPlayerFromCharacter(character)
if player then
print(player.Name .. " oturdu")
currentPlayer = player
return
end
end
if currentPlayer then
print(currentPlayer.Name .. " kalktı")
currentPlayer = nil
end
end
seat:GetPropertyChangedSignal("Occupant"):Connect(onOccupantChanged)

API Referansı
Özellikler
Disabled
Paralel oku
Capabilities: Basic, AvatarBehavior
Simulation Access
Seat.Disabled:boolean

Occupant
Salt Okunur
Çoğaltılmamış
Paralel oku
Capabilities: Basic, AvatarBehavior
Simulation Access
Seat.Occupant:Humanoid

Yöntemler
Sit
Capabilities: Basic, AvatarBehavior
Seat:Sit(humanoid:Instance):()
Parametreler
humanoid:Instance
Dönüşler
()

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.