L_8_.InputBegan:connect(function(s,Q)if not Q then if s.KeyCode==L_7_.StartupKey then if not L_14_ and L_15_ then L_15_=false L_35_.Text="\083\084\065\084\085\083\058 \083\084\065\082\084\073\078\071 \085\080"L_41_:FireServer();(L_10_:WaitForChild("\083\116\097\114\116\085\112")):Play()wait(L_7_.StartupTime);(L_10_:WaitForChild("\083\112\105\110")):Play();(L_10_:WaitForChild("\083\116\097\114\116\085\112")):Stop()L_35_.Text="\083\084\065\084\085\083\058 \079\078\076\073\078\069"L_14_=true L_36_.Text=L_4_.Name else TurnOff()L_31_:Destroy()L_15_=true script:Destroy()end end if L_14_ then if s.KeyCode==L_7_.UpKey and not L_19_ then L_19_=true while L_19_ do L_9_:wait()L_28_=L_28_+L_10_.CFrame.upVector.unit*L_7_.UpSpeed end end if s.KeyCode==L_7_.DownKey and not L_20_ then L_20_=true while L_20_ do L_9_:wait()L_28_=L_28_+L_10_.CFrame.upVector.unit*-L_7_.DownSpeed end end if s.KeyCode==L_7_.ForwardKey and not L_21_ then L_21_=true while L_21_ do L_9_:wait()L_28_=L_28_+L_10_.CFrame.lookVector.unit*L_7_.ForwardSpeed L_29_=CFrame.Angles(math.rad(-L_7_.FrontRotation),0,0)end L_29_=CFrame.Angles(0,0,0)end if s.KeyCode==L_7_.BackwardKey and not L_22_ then L_22_=true while L_22_ do L_9_:wait()L_28_=L_28_+L_10_.CFrame.lookVector.unit*-L_7_.BackwardSpeed L_29_=CFrame.Angles(math.rad(L_7_.BackRotation),0,0)end L_29_=CFrame.Angles(0,0,0)end if s.KeyCode==L_7_.RightKey and not L_23_ then L_23_=true while L_23_ do L_9_:wait()L_28_=L_28_+L_10_.CFrame.rightVector.unit*L_7_.RightSpeed L_29_=CFrame.Angles(0,0,math.rad(-L_7_.RightRotation))end L_29_=CFrame.Angles(0,0,0)end if s.KeyCode==L_7_.LeftKey and not L_24_ then L_24_=true while L_24_ do L_9_:wait()L_28_=L_28_+L_10_.CFrame.rightVector.unit*-L_7_.LeftSpeed L_29_=CFrame.Angles(0,0,math.rad(L_7_.LeftRotation))end L_29_=CFrame.Angles(0,0,0)end if s.UserInputType==L_7_.MouseToggleKey and L_25_ then if not L_27_ then L_27_=true else L_27_=false end end if s.KeyCode==Enum.KeyCode.C and not L_16_ then L_16_=true while L_16_ do for s,Q in pairs((L_4_:WaitForChild("\087\101\097\112\111\110\114\121")):GetChildren())do if Q:IsA("\066\097\115\101\080\097\114\116")and Q.Name=="\077\071"then Q.Fire:Play()spawn(function()Fire(Q)end)end end wait(60/L_7_.FireRate)end end if s.KeyCode==Enum.KeyCode.F and(not L_17_ and(L_26_ and L_18_>0))then L_17_=true while L_17_ and(L_26_ and L_18_>0)do for s,Q in pairs((L_4_:WaitForChild("\087\101\097\112\111\110\114\121")):GetChildren())do if Q:IsA("\066\097\115\101\080\097\114\116")and Q.Name=="\065\084\071"then Q.Fire:Play()spawn(function()FireATG(Q)end)end end L_26_=false wait(60/L_7_.RocketFireRate)L_26_=true end end end end end)L_8_.InputEnded:connect(function(s,Q)if not Q then if s.KeyCode==L_7_.UpKey and L_19_ then L_19_=false end if s.KeyCode==L_7_.DownKey and L_20_ then L_20_=false end if s.KeyCode==L_7_.ForwardKey and L_21_ then L_21_=false end if s.KeyCode==L_7_.BackwardKey and L_22_ then L_22_=false end if s.KeyCode==L_7_.RightKey and L_23_ then L_23_=false end if s.KeyCode==L_7_.LeftKey and L_24_ then L_24_=false end if s.KeyCode==Enum.KeyCode.C and L_16_ then L_16_=false for s,Q in pairs((L_4_:WaitForChild("\087\101\097\112\111\110\114\121")):GetChildren())do if Q:IsA("\066\097\115\101\080\097\114\116")and Q.Name=="\077\071"then Q.Fire:Stop()end end end if s.KeyCode==Enum.KeyCode.F and L_17_ then L_17_=false end end end);(L_2_:WaitForChild("\072\117\109\097\110\111\105\100")).Died:connect(function()TurnOff()L_31_:Destroy()L_15_=true script:Destroy()end)L_8_.JumpRequest:connect(function()if L_15_ then if L_1_.PlayerGui:FindFirstChild("\072\101\108\105\095\067\111\110\116\114\111\108")then L_1_.PlayerGui.Heli_Control:Destroy()end end end)

L_8_.InputBegan:connect(function(L_89_arg1, L_90_arg2)
	if not L_90_arg2 then
		if L_89_arg1.KeyCode == L_7_.StartupKey then
			if not L_14_ and L_15_ then
				L_15_ = false
				L_35_.Text = 'STATUS: ' .. 'STARTING UP'
				L_41_:FireServer()
				L_10_:WaitForChild('StartUp'):Play()
				wait(L_7_.StartupTime) -- 26.13
				L_10_:WaitForChild('Spin'):Play()
				L_10_:WaitForChild('StartUp'):Stop()
				L_35_.Text = 'STATUS: ' .. 'ONLINE'
				L_14_ = true
				L_36_.Text = L_4_.Name
			else
				TurnOff()
				L_31_:Destroy()
				L_15_ = true
				script:Destroy()
			end	
		end		
		
		if L_14_ then
			if L_89_arg1.KeyCode == L_7_.UpKey and not L_19_ then
				L_19_ = true
				while L_19_ do
					L_9_:wait()				
					L_28_ = L_28_ + L_10_.CFrame.upVector.unit * L_7_.UpSpeed
				end
			end;
			
			if L_89_arg1.KeyCode == L_7_.DownKey and not L_20_ then
				L_20_ = true
				while L_20_ do
					L_9_:wait()				
					L_28_ = L_28_ + L_10_.CFrame.upVector.unit * -L_7_.DownSpeed
				end
			end;
			
			if L_89_arg1.KeyCode == L_7_.ForwardKey and not L_21_ then
				L_21_ = true
				while L_21_ do
					L_9_:wait()
					L_28_ = L_28_ + L_10_.CFrame.lookVector.unit * L_7_.ForwardSpeed
					L_29_ = CFrame.Angles(math.rad(-L_7_.FrontRotation), 0, 0)
				end
				L_29_ = CFrame.Angles(0, 0, 0)
			end;
			
			if L_89_arg1.KeyCode == L_7_.BackwardKey and not L_22_ then
				L_22_ = true
				while L_22_ do
					L_9_:wait()
					L_28_ = L_28_ + L_10_.CFrame.lookVector.unit * -L_7_.BackwardSpeed
					L_29_ = CFrame.Angles(math.rad(L_7_.BackRotation), 0, 0)
				end
				L_29_ = CFrame.Angles(0, 0, 0)
			end;
			
			if L_89_arg1.KeyCode == L_7_.RightKey and not L_23_ then
				L_23_ = true
				while L_23_ do
					L_9_:wait()
					L_28_ = L_28_ + L_10_.CFrame.rightVector.unit * L_7_.RightSpeed
					L_29_ = CFrame.Angles(0, 0, math.rad(-L_7_.RightRotation))
				end
				L_29_ = CFrame.Angles(0, 0, 0)
			end;
			
			if L_89_arg1.KeyCode == L_7_.LeftKey and not L_24_ then
				L_24_ = true
				while L_24_ do
					L_9_:wait()
					L_28_ = L_28_ + L_10_.CFrame.rightVector.unit * -L_7_.LeftSpeed
					L_29_ = CFrame.Angles(0, 0, math.rad(L_7_.LeftRotation))
				end
				L_29_ = CFrame.Angles(0, 0, 0)
			end;
			
			if L_89_arg1.UserInputType == L_7_.MouseToggleKey and L_25_ then
				if not L_27_ then
					L_27_ = true
				else
					L_27_ = false
				end
			end;
			
			if L_89_arg1.KeyCode == Enum.KeyCode.C and not L_16_ then
				L_16_ = true
				while L_16_ do
					for L_91_forvar1, L_92_forvar2 in pairs(L_4_:WaitForChild('Weaponry'):GetChildren()) do
						if L_92_forvar2:IsA('BasePart') and L_92_forvar2.Name == 'MG' then
							L_92_forvar2.Fire:Play()
							spawn(function ()
								Fire(L_92_forvar2)
							end)
						end
					end
					wait(60 / L_7_.FireRate)
				end
			end;
			
			if L_89_arg1.KeyCode == Enum.KeyCode.F and not L_17_ and L_26_ and L_18_ > 0 then
				L_17_ = true
				while L_17_ and L_26_ and L_18_ > 0 do
					for L_93_forvar1, L_94_forvar2 in pairs(L_4_:WaitForChild('Weaponry'):GetChildren()) do
						if L_94_forvar2:IsA('BasePart') and L_94_forvar2.Name == 'ATG' then
							L_94_forvar2.Fire:Play()
							spawn(function ()
								FireATG(L_94_forvar2)
							end)
						end
					end
					L_26_ = false
					wait(60 / L_7_.RocketFireRate)
					L_26_ = true
				end
			end;
		end
	end;
end)

L_8_.InputEnded:connect(function(L_95_arg1, L_96_arg2)
	if not L_96_arg2 then
		if L_95_arg1.KeyCode == L_7_.UpKey and L_19_ then
			L_19_ = false
		end;
		
		if L_95_arg1.KeyCode == L_7_.DownKey and L_20_ then
			L_20_ = false
		end;
		
		if L_95_arg1.KeyCode == L_7_.ForwardKey and L_21_ then
			L_21_ = false
		end;
		
		if L_95_arg1.KeyCode == L_7_.BackwardKey and L_22_ then
			L_22_ = false
		end;
		
		if L_95_arg1.KeyCode == L_7_.RightKey and L_23_ then
			L_23_ = false
		end;
		
		if L_95_arg1.KeyCode == L_7_.LeftKey and L_24_ then
			L_24_ = false
		end;
		
		if L_95_arg1.KeyCode == Enum.KeyCode.C and L_16_ then
			L_16_ = false
			for L_97_forvar1, L_98_forvar2 in pairs(L_4_:WaitForChild('Weaponry'):GetChildren()) do
				if L_98_forvar2:IsA('BasePart') and L_98_forvar2.Name == 'MG' then
					L_98_forvar2.Fire:Stop()
				end
			end
		end;
		
		if L_95_arg1.KeyCode == Enum.KeyCode.F and L_17_ then
			L_17_ = false
		end;
	end
end)

L_2_:WaitForChild('Humanoid').Died:connect(function()
	TurnOff()
	L_31_:Destroy()
	L_15_ = true
	script:Destroy()
end)

L_8_.JumpRequest:connect(function()
	if L_15_ then
		if L_1_.PlayerGui:FindFirstChild('Heli_Control') then
			L_1_.PlayerGui['Heli_Control']:Destroy()
		end
	end
end)
