(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 l=(script.Parent.Parent.Parent.Character:findFirstChild("\080\108\097\110\101")).Parts.Engine local u=l.Position bv=l.BodyVelocity bv.velocity=Vector3.new(0,0,0)while on do wait(.1)speed=l.Speed.Value spd=(speed/100)*5 dir=l.CFrame.lookVector VertSpd=l.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(l)local u=false for V,p in pairs(vParts:GetChildren())do if p.Name==l then fireB(l,p)u=true end end end function getairtoground(l,u)if l==nil then return end local V=l.Parent for l=1,math.huge,1 do if V.className=="\080\097\114\116"or V.className=="\087\101\100\103\101\080\097\114\116"and V.Parent~=vParts or V.Parent~=vParts.Parent.Body then break end if V==workspace then return end V=V.Parent end local p=false if u.Name=="\076\097\117\110\099\104\049"or u.Name=="\076\097\117\110\099\104\050"then v=u fireHo(v,l)p=true end end function Getmissile(l)if plane:findFirstChild(l)~=nil then if(plane:findFirstChild(l)).className=="\080\097\114\116"then if l=="\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 l=="\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
--FlyScript...Build in PlaneFlyer
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(0.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
