if key==keys.stop.code and(planedebounce==false and on==true)then local D=(script.Parent.Parent.Parent.PlayerGui:findFirstChild("\080\108\097\110\101\083\116\097\116\115")).Frame D.EngineOff.Label.Text="\069\078\071\073\078\069 \079\070\070"plane.Engine.Spin:Stop()local K=plane.Engine:findFirstChild("\083\112\101\101\100")if K~=nil then K.Value=0 end local n=plane.Engine:findFirstChild("\086\101\114\116\105\099\097\108\083\112\101\101\100")if n~=nil then n.Value=0 end plane.Stand.CanCollide=true plane.Engine.BodyVelocity.maxForce=Vector3.new(0,0,0)local b=plane:findFirstChild("\082\111\116\111\114\115")for D,K in pairs(b:GetChildren())do if K.Name=="\082\111\116\111\114\079\102\102"then K.Transparency=0 K.CanCollide=true elseif K.Name=="\082\111\116\111\114\079\110"then K.Spin.inc.Value=0 K.Spin.inc.Value=0 end end on=false Mousefollow=false end if key==keys.start.code and(on==false and startLock)then local D=(script.Parent.Parent.Parent.PlayerGui:findFirstChild("\080\108\097\110\101\083\116\097\116\115")).Frame plane.Engine.StartUp:Play()D.EngineOff.Label.Text="\083\116\097\114\116\105\110\103 \085\112"local K=Instance.new("\083\109\111\107\101")K.Color=Color3.new(128,128,128)K.Size=.1 K.RiseVelocity=9 K.Opacity=.3 K.Parent=plane.SmokeA K.Enabled=true wait(10)plane.Engine.StartUp:Stop()if plane.Engine:findFirstChild("\083\112\101\101\100")==nil then local D=script.Parent.Speed:clone()D.Parent=plane.Engine end plane.Stand.CanCollide=false game.Debris:AddItem(K,2)local n=plane:findFirstChild("\082\111\116\111\114\115")plane.Engine.Spin:Play()for D,K in pairs(n:GetChildren())do if K.Name=="\082\111\116\111\114\079\102\102"then K.Transparency=1 K.CanCollide=false elseif K.Name=="\082\111\116\111\114\079\110"then local D=0 for D=0,40,.5 do wait()K.Spin.inc.Value=D K.Spin.inc.Value=D end end end plane.Engine.BodyVelocity.maxForce=Vector3.new(1000000000000.0,1000000000000.0,1000000000000.0)on=true end if key=="\113"then startLock=true end




		

		if (key==keys.stop.code) and planedebounce == false and (on == true) then--if Shutting down
				local PS = script.Parent.Parent.Parent.PlayerGui:findFirstChild("PlaneStats").Frame
				PS.EngineOff.Label.Text = "ENGINE OFF"
				plane.Engine.Spin:Stop()
				local spd = plane.Engine:findFirstChild("Speed")
				if (spd ~= nil) then
				spd.Value = 0
				end
				local spd = plane.Engine:findFirstChild("VerticalSpeed")
				if (spd ~= nil) then
				spd.Value = 0
				end
						plane.Stand.CanCollide = true
				plane.Engine.BodyVelocity.maxForce = Vector3.new(0,0,0)
					local mod = plane:findFirstChild("Rotors")
					for i,v in pairs(mod:GetChildren()) do 
					if(v.Name == "RotorOff") then
					v.Transparency = 0
					v.CanCollide = true
					elseif(v.Name == "RotorOn") then
					v.Spin.inc.Value = 0
					v.Spin.inc.Value = 0
					end
					end
				
					on = false
					Mousefollow=false
				end 
     	if (key==keys.start.code) and (on == false) and startLock then
				local PS = script.Parent.Parent.Parent.PlayerGui:findFirstChild("PlaneStats").Frame
				plane.Engine.StartUp:Play()
				PS.EngineOff.Label.Text = "Starting Up"
				local s = Instance.new("Smoke") 
				s.Color = Color3.new(128,128,128)
				s.Size = .1
				s.RiseVelocity = 9
				s.Opacity = .3
				s.Parent = plane.SmokeA
				s.Enabled = true
				wait(10)
				plane.Engine.StartUp:Stop()
				if (plane.Engine:findFirstChild("Speed") == nil) then 
				local speed = script.Parent.Speed:clone()
				speed.Parent = plane.Engine
				end 
						plane.Stand.CanCollide = false 
						
						game.Debris:AddItem(s,2)
						local mod = plane:findFirstChild("Rotors")
						plane.Engine.Spin:Play()
						for i,v in pairs(mod:GetChildren()) do
						if(v.Name == "RotorOff") then
						v.Transparency = 1
						v.CanCollide = false
						elseif(v.Name == "RotorOn") then 
							local spininc = 0
							for i = 0, 40, .5 do
								wait()
								v.Spin.inc.Value = i
								v.Spin.inc.Value = i
							end
						end
						end 
						plane.Engine.BodyVelocity.maxForce = Vector3.new(1e+012,1e+012,1e+012)
					on = true
				end
		
				if(key == "q") then 
					startLock = true
				end 
