local mouse = game.Players.LocalPlayer:GetMouse()
mouse.KeyDown:connect(function(key)
if key == "f" then
Barrel = script.Parent.Parent.Parent.Character.Experimentalheli.Controls.Barrel
Killscript = script.Script
c = Instance.new("Part")
c.Parent = game.Workspace
c.Name = "Bullet"
c.BrickColor = BrickColor.new("Bright yellow")
c.Size = Vector3.new(1, 1, 4)
c.BottomSurface = "Smooth"
c.TopSurface = "Smooth"
c.Position = Barrel.Position
c.CanCollide = false
b = Instance.new("BlockMesh")
b.Scale = Vector3.new(0.3, 0.3, 1)
b.Parent = c
t = Instance.new("BodyThrust")
t.force = Vector3.new(0, -2000, -130000)
t.Parent = c
a = Killscript:clone()
a.Parent = c
Barrel.Firesound:Play()
end
end)
I'm new at scripting but yet I managed to make a functional helicopter

1 comment
Thanks! Also I love your gun kit infact im using it on my FPS game