I’ve made a script for an automatic gun:
However, if I double click and hold down the mouse button on the second click it’ll fire faster than the cooldown time.
Here is my script:
Mouse.Button1Down:Connect(function()
if Equipped == true then
MouseB1Down = true
if Aiming == true and Reloading.Value == false then
if Automatic.Value == true then
repeat
if Equipped == true and Reloading.Value == false then
FireGun()
wait(FireCooldown.Value)
else
break
end
wait()
until MouseB1Down == false or Equipped == false
else
if Equipped == true then
FireGun()
end
end
end
end
end)
Mouse.Button1Up:Connect(function()
if Equipped == true then
MouseB1Down = false
end
end)