📜  让玩家坐在座位上 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:09.983000             🧑  作者: Mango

代码示例1
local seat = script.Parent

function getPlayerOnSeat()
    local occupant = seat.occupant
    if occupant then
        local player = game.Players:GetPlayerFromCharacter(occupant.Parent)
        return player
    end
end