I fail to see how you're having an issue with a toggle but I can tell if you plan to make multiple weapons that use this same kind of system, you'll be incurring a bad time.
Toggles are very basic and typically done like this:
PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
if (this.on) {
player.chat = "I am no longer on.";
this.on = false;
} else {
player.chat = "I am on.";
this.on = true;
}
}
If you completed my 'Staff Boots Challenge' on my tutorial you would have created a working toggle script.