if (key == "f") then
if (not isFiring) and (not cloakActive.Value) and (not shieldActive.Value) and (speed.Value < fireSpeed) then
isFiring = true
fire()
wait(weaponsCooldown)
isFiring = false
end
end
Need it to make a Viper weapons system from Battlestar Galactica

2 comments
Techically, you defined
fireas a boolean. :P'fire' is defined as a boolean, but this assumes that 'fire()' is defined somewhere as a function. One would not override the other, would it?