So I have this plane tool that is not working right. It makes the plane fly, but it won't fire its rockets when you press the "f" key. I know it's a free model, but this type of thing looks too confusing and hard to make from scratch. Also, I would use crazyman32's jet, but it's nice to have other options.
So I found the lines that are having the problems. Output gave me nothing, and anything relating to the plane is defined already. Can some please help me? Here are the lines of the script:
if (key=="f") and (bin.Reload.Value == 0) then fired(plane.Gun1) fired(plane.Gun2) bin.Reload.Value = 1 wait(1) bin.Reload.Value = 0 end function fired(pln, spn) local missile = bin.Rocket:clone() missile.CFrame = spn.CFrame * CFrame.new(0, 0, -35) missile.RocketScript.Disabled = false missile.Parent = game.Workspace local creator_tag = Instance.new("ObjectValue") creator_tag.Value = game.Players.LocalPlayer creator_tag.Name = "creator" creator_tag.Parent = missile end