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