(script.Parent.Parent.Parent.Character:findFirstChild("\080\108\097\110\101")).Parts.Values.On.Changed:connect(function()if(script.Parent.Parent.Parent.Character:findFirstChild("\080\108\097\110\101")).Parts.Values.On.Value==true then local G=(script.Parent.Parent.Parent.Character:findFirstChild("\080\108\097\110\101")).Parts.Engine local f=G.Position bv=G.BodyVelocity bv.velocity=Vector3.new(0,0,0)while on do wait(.1)speed=G.Speed.Value spd=(speed/100)*5 dir=G.CFrame.lookVector VertSpd=G.VerticalSpeed.Value bv.velocity=dir*((spd*.422)*50)+Vector3.new(0,VertSpd+spd,0)if(script.Parent.Parent.Parent.Character:findFirstChild("\080\108\097\110\101")).Parts.Values.On.Value==false then break end end end end)function getBullet(G)local f=false for v,e in pairs(vParts:GetChildren())do if e.Name==G then fireB(G,e)f=true end end end function getairtoground(G,f)if G==nil then return end local e=G.Parent for G=1,math.huge,1 do if e.className=="\080\097\114\116"or e.className=="\087\101\100\103\101\080\097\114\116"and e.Parent~=vParts or e.Parent~=vParts.Parent.Body then break end if e==workspace then return end e=e.Parent end local z=false if f.Name=="\076\097\117\110\099\104\049"or f.Name=="\076\097\117\110\099\104\050"then v=f fireHo(v,G)z=true end end function Getmissile(G)if plane:findFirstChild(G)~=nil then if(plane:findFirstChild(G)).className=="\080\097\114\116"then if G=="\076\097\117\110\099\104\065"then if hydra.left~=0 then hydra.left=hydra.left-1 fire(plane.Parent,plane:findFirstChild("\076\097\117\110\099\104\065"))end elseif G=="\076\097\117\110\099\104\066"then if hydra.right~=0 then hydra.right=hydra.right-1 fire(plane.Parent,plane:findFirstChild("\076\097\117\110\099\104\066"))end end end end end

script.Parent.Parent.Parent.Character:findFirstChild("Plane").Parts.Values.On.Changed:connect(function()
if(script.Parent.Parent.Parent.Character:findFirstChild("Plane").Parts.Values.On.Value == true) then 
local engine = script.Parent.Parent.Parent.Character:findFirstChild("Plane").Parts.Engine
local position = engine.Position
bv = engine.BodyVelocity
bv.velocity = Vector3.new(0,0,0)
while on do
	wait(.1)
	speed = engine.Speed.Value
	spd = (speed/100)*5
	dir = engine.CFrame.lookVector 
	VertSpd = engine.VerticalSpeed.Value
	bv.velocity = dir * (spd*0.422*50)+Vector3.new(0,(VertSpd)+(spd),0)
if(script.Parent.Parent.Parent.Character:findFirstChild("Plane").Parts.Values.On.Value == false) then break end
end 
end 
end)

function getBullet(Type)
local founddd = false
for _,v in pairs(vParts:GetChildren()) do
if v.Name == Type then
fireB(Type,v)
founddd = true
end
end
end

function getairtoground(mousetar,Type)
if mousetar == nil then return end
local as = mousetar.Parent
for i=1,math.huge do
if (as.className == "Part") or (as.className == "WedgePart") and (as.Parent ~= vParts) or (as.Parent ~=vParts.Parent.Body) then break end
if as == workspace then return end
as = as.Parent
end
local foundtar = false
if(Type.Name == "Launch1") or(Type.Name == "Launch2") then
v = Type
fireHo(v,mousetar)
foundtar = true
end
end

function Getmissile(Type)
if(plane:findFirstChild(Type)~= nil) then 
if(plane:findFirstChild(Type).className == "Part") then 
if(Type == "LaunchA") then

	if(hydra.left ~= 0) then 
	hydra.left = hydra.left -1
fire(plane.Parent,plane:findFirstChild("LaunchA"))
	end
elseif(Type == "LaunchB") then 

	if(hydra.right ~= 0) then 
		hydra.right = hydra.right -1
fire(plane.Parent,plane:findFirstChild("LaunchB"))
	end
end 
end
end
end 
