function PilotSeat.new(m)local o={}setmetatable(o,PilotSeat)o.speeder=m o.main=m.PrimaryPart SetMassless(o.speeder,o)SetMass(o.main)o.mass=GetMass(o.speeder)SetupCollisionDetection(o.speeder,o)local j=o.main:FindFirstChild("\083\101\116\116\105\110\103\115")assert(j,"\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")o._settings=require(j)o.engine=Engine.new(o)return o end function PilotSeat.Destroy(m)m.speeder:Destroy()m.main=false m.id=false m.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()