function PilotSeat.new(t)local l={}setmetatable(l,PilotSeat)l.speeder=t l.main=t.PrimaryPart SetMassless(l.speeder,l)SetMass(l.main)l.mass=GetMass(l.speeder)SetupCollisionDetection(l.speeder,l)local q=l.main:FindFirstChild("\083\101\116\116\105\110\103\115")assert(q,"\065 \083\101\116\116\105\110\103\115 \115\099\114\105\112\116 \119\097\115\110\'\116 \102\111\117\110\100\046 \077\097\107\101 \115\117\114\101 \121\111\117\114 \102\105\110\105\115\104\101\100 \077\111\100\101\108 \105\110\099\108\117\100\101\115 \097 \066\111\100\121 \112\097\114\116 \119\105\116\104 \097\110 \097\116\116\097\099\104\101\100 \083\101\116\116\105\110\103 \083\099\114\105\112\116")l._settings=require(q)l.engine=Engine.new(l)return l end function PilotSeat.Destroy(t)t.speeder:Destroy()t.main=false t.id=false t.engine=false end

function PilotSeat.new(speeder)
	local newPilotSeat = {}
	setmetatable(newPilotSeat, PilotSeat)
	
	-- Set speeder and main (PrimaryPart)
	newPilotSeat.speeder = speeder
	newPilotSeat.main = speeder.PrimaryPart
	
	-- Mass equalizer
	SetMassless(newPilotSeat.speeder, newPilotSeat)
	SetMass(newPilotSeat.main)
	newPilotSeat.mass = GetMass(newPilotSeat.speeder)
	
	SetupCollisionDetection(newPilotSeat.speeder, newPilotSeat)
	
	-- Settings
	local _settings = newPilotSeat.main:FindFirstChild("Settings")
	assert(_settings, "A Settings script wasn't found. Make sure your finished Model includes a Body part with an attached Setting Script")
	newPilotSeat._settings = require(_settings)
	
	newPilotSeat.engine = Engine.new(newPilotSeat)


	return newPilotSeat
end -- PilotSeat.new()


function PilotSeat:Destroy()	
	self.speeder:Destroy()
	self.main = false
	self.id = false
	self.engine = false
end -- PilotSeat:Destroy()