Projectile appears when pressed then shoots when repressed issue

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? projectile appears when pressed then shoots when repressed

  2. What is the issue? It shoots even if i don’t re press it

  3. What solutions have you tried so far? Yes

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

	if Action  == "E" then
		for i = 1,100 do
			local Sword = FX.Sword:Clone()
			Sword.Parent = workspace
			Sword.CFrame = HumRP.CFrame * CFrame.new(math.random(-50,50),math.random(1,15),2)
			Sword.CFrame = CFrame.new(Sword.Position, MouseHit.p)			


			local Tween = TS:Create(Sword,TweenInfo.new(0.8), {Transparency = 0})	
			Tween:Play()
			wait(DelayBetweenProjectiles, math.rad(-1,-3))

			if Action  == "E" then
				delay(11,function()				
					local Tween = TS:Create(Sword,TweenInfo.new(3),{CFrame = Sword.CFrame * CFrame.new(0,0,-130)})
					Tween:Play()

					Hand:Play()

					local QiHit = Sounds.QiHit:Clone()
					QiHit.Parent = Sword
					QiHit:Play()
					game.Debris:AddItem(QiHit, 1.553)

					local Touched 
					Touched = Sword.Touched:Connect(function(Hit)
						if Hit and Hit.Parent:FindFirstChild("Humanoid") and Hit.Parent ~= Char then
							local Enemy = Hit.Parent.Humanoid
							Enemy:TakeDamage(Damage)

							Sword:Destroy()	
						end
					end)
				end)
			end
		end	
	end