local n={}local t={}local function H()return script.Parent.Parent end local function B(n)return n:GetAttribute("\065\108\108\111\119\067\097\114\106\097\099\107\105\110\103")end local function S(n)local t=n.Parent if t:IsA("\077\111\100\101\108")then if t:FindFirstChild("\069\102\102\101\099\116\115")then return t.Effects else return S(t)end end return nil end local function Z(n,t)local H=n:FindFirstChild(t.."\068\111\111\114")if H then H:Play()end end

local SeatInteractionCount = {}

local VehicleSeating = {}

local function getVehicleObject()
	return script.Parent.Parent
end

local function carjackingEnabled(obj)
	return obj:GetAttribute("AllowCarjacking")
end

local function getEffectsFolderFromSeat(seat)
	local parent = seat.Parent
	if parent:IsA("Model") then
		if parent:FindFirstChild("Effects") then
			return parent.Effects
		else
			return getEffectsFolderFromSeat(parent)
		end
	end
	return nil
end

local function playDoorSound(seat, sound)
	local sound = seat:FindFirstChild(sound.."Door")
	if sound then
		sound:Play()
	end
end
