So I have a script that is keydown to shoot one projectile but how do I make it shoot multiple projectiles when I press the key?
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
Mouse.KeyDown:connect(function(Key)
if Key == 'e' then
local Part = game.ServerStorage.Fireball:Clone()
Part.Parent = game.Workspace
Part.CFrame = Player.Character.Torso.CFrame * CFrame.new(-.1,0,-5)
local y = Instance.new("BodyVelocity")
y.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
y.Velocity = Player.Character.Torso.CFrame.lookVector*160
y.Parent = Part
script.Disabled = true
wait(2)
script.Disabled = false
end
end)
This is for one fireball but how do I make it fire multiple times if I press the key e?

4 comments
Show script? more description? what are you actually trying to do? We can't help you if you 1) do not include code and 2) do not describe enough
omigosh stop using deprecated stuff it doesn't even work
PLS USE CONTEXTACTIONSERVICE OR USERINPUTSERVICE
It does work