local w=script.Parent w.Changed:connect(function(n)if n=="\079\099\099\117\112\097\110\116"then local n=w.Occupant if n then local a=(game:GetService("\080\108\097\121\101\114\115")):GetPlayerFromCharacter(n.Parent)if a then w:SetNetworkOwner(a)end else w:SetNetworkOwner(nil)end end end)
-- NTG1D & Sallomy

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)
