local G=script.Parent G.Changed:connect(function(v)if v=="\079\099\099\117\112\097\110\116"then local v=G.Occupant if v then local d=(game:GetService("\080\108\097\121\101\114\115")):GetPlayerFromCharacter(v.Parent)if d then G:SetNetworkOwner(d)end else G:SetNetworkOwner(nil)end end end)


local VehicleSeat = script.Parent
 
VehicleSeat.Changed:connect(function(prop)
    if prop == "Occupant" then
        local humanoid = VehicleSeat.Occupant
        if humanoid then
            local player = game:GetService("Players"):GetPlayerFromCharacter(humanoid.Parent)
            if player then
                VehicleSeat:SetNetworkOwner(player)
            end
        else
            VehicleSeat:SetNetworkOwner(nil)
        end
    end
end)
