I am currently making animated lights gear and such for planes. My first plane I did this on it works fine but on this one I am having a problem, I attached everything like normal and put the scripts and everything in correct But I am having a problem. The output reads:

09:28:33.126 - Motor is not a valid member of Part 09:28:33.126 - Stack Begin 09:28:33.127 - Script 'Players.TayLife12.Backpack.PlaneTool.PlaneScript', Line 64 - global onIdle 09:28:33.128 - Script 'Players.TayLife12.Backpack.PlaneTool.PlaneScript', Line 20

Here is where the tool script is located: http://prntscr.com/bzt5j1

The Problem seems to be at this part of the plane script:

--16  function onSelected(mouse)
	mouse.KeyDown:connect(onKeyDown)
	mouse.KeyUp:connect(onKeyUp) 
	mouse.Move:connect(function() onMoved(mouse) end)
	mouse.Idle:connect(function() onIdle(mouse) end)
	plane = script.Parent.Plane.Value
end

player = script.Parent.Parent.Parent

SteerGUI = Instance.new("ScreenGui")
SteerGUI.Parent = player.PlayerGui
Frame = Instance.new("Frame")
Frame.Parent = SteerGUI
Frame.Size = UDim2.new(1, 0, 1, 0)
Frame.BackgroundTransparency = 1

Frame.MouseMoved:connect(function(x, y)
local plane = script.Parent.Plane.Value
local xsteer = x
local ysteer = y	
local cx = Frame.AbsoluteSize.x / 2
local cy = Frame.AbsoluteSize.y / 2
xstate = cx - xsteer
roll = -xstate/cx
plane.AileronL.A.Motor.DesiredAngle = 1*-roll
plane.AileronR.A.Motor.DesiredAngle = 1*roll

ystate = cy - ysteer
pitch = -ystate/cy
plane.ElevatorL.A.Motor.DesiredAngle = 0.25*-pitch
plane.ElevatorR.A.Motor.DesiredAngle = 0.25*pitch
end)

function Move(psn)
	local engine = plane.Engine
	local Gyro = engine.BodyGyro
	if plane then
		Gyro.cframe = psn 
	end
end

function onMoved(mouse)
	Move((mouse.hit)*CFrame.fromEulerAnglesXYZ(0,0,-roll))
end

function onIdle()
	local plane = script.Parent.Plane.Value
plane.AileronL.A.Motor.DesiredAngle = 0
--65 plane.AileronR.A.Motor.DesiredAngle = 0