Hello!
I've been trying to figure out a way to stop bullet spam and Ive been using this method listed below.
Mouse.Button1Down:connect(function(Mouse)
Firing = true
if Active == true and Ammo.Value >= 0 and GunReady == true then
GunReady = false
Dead()
CreateBullet()
wait(FireRate/60)
end
if Active == true and Ammo.Value <= 0 then
Firing = false
Empty:Play()
end
GunReady = true
wait(1)
end)
Mouse.Button1Up:connect(function(Mouse)
Firing = false
end)
Any help would be greatly appreciated. Cheers.

1 comment
Another problem Im having is, it also is able to fire when Ammo.Value == 0