local G={}local M={}local function t()return script.Parent.Parent end local function m(G)return G:GetAttribute("\065\108\108\111\119\067\097\114\106\097\099\107\105\110\103")end local function D(G)local M=G.Parent if M:IsA("\077\111\100\101\108")then if M:FindFirstChild("\069\102\102\101\099\116\115")then return M.Effects else return D(M)end end return nil end local function n(G,M)local t=G:FindFirstChild(M.."\068\111\111\114")if t then t:Play()end end
--Variables
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
