function Engine.new(e)local l={}setmetatable(l,Engine)l.Speeder=e l.Main=e.main l.Mass=e.mass local Z=Instance.new("\065\116\116\097\099\104\109\101\110\116")Z.Parent=e.main l.Thruster=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121")l.Thruster.Name="\084\104\114\117\115\116\101\114"l.Thruster.Parent=e.main l.Steering=Instance.new("\066\111\100\121\071\121\114\111")l.Steering.Name="\083\116\101\101\114\105\110\103"l.Steering.Parent=e.main l._settings=e._settings l._SPEED=l._settings.DefaultSpeed l._BOOSTSPEED=l._settings.BoostSpeed l._PITCH=(3.5*l._settings.Steering)*(math.pi/180)l._YAW=(-4*l._settings.Steering)*(math.pi/180)l._ROLL=(2*l._settings.Steering)*(math.pi/180)EngineRate=IIRFilter(.005)StartSound:Play()local j j=StartSound.Ended:Connect(function()MotorSound:Play()j:Disconnect()end)return l end

function Engine.new(speeder)	
	local newEngine = {}
	setmetatable(newEngine, Engine)

	newEngine.Speeder = speeder
	newEngine.Main = speeder.main
	newEngine.Mass = speeder.mass
	
	-- Attachment
	local attachment = Instance.new("Attachment")
	attachment.Parent = speeder.main
	
	-- Thruster (foward/backward)
	newEngine.Thruster = Instance.new("BodyVelocity")
	newEngine.Thruster.Name = "Thruster"
	newEngine.Thruster.Parent = speeder.main
	
	-- Gyro (steering)
	newEngine.Steering = Instance.new("BodyGyro")
	newEngine.Steering.Name = "Steering"
	newEngine.Steering.Parent = speeder.main
	
	newEngine._settings = speeder._settings
	
	-- Set settings
	newEngine._SPEED = newEngine._settings.DefaultSpeed
	newEngine._BOOSTSPEED = newEngine._settings.BoostSpeed
	newEngine._PITCH = (3.5*newEngine._settings.Steering)*(math.pi/180)
	newEngine._YAW = (-4*newEngine._settings.Steering)*(math.pi/180)
	newEngine._ROLL = (2*newEngine._settings.Steering)*(math.pi/180)
	
	EngineRate = IIRFilter(0.005)
	
	StartSound:Play()
	local soundConnection
	soundConnection = StartSound.Ended:Connect(function()
		MotorSound:Play()
		soundConnection:Disconnect()
	end)
	
	return newEngine
end -- Engine:new()
