script from another

how to disable a js script using other script… like when you pause the game, the player cannot shoot… thats what im aiming, ill disable that script (shootscript)

you can disable scripts by using this:

var Script : theScript;

Script = GetComponent(theScript); 
Script.enabled = false; //disables the script

you will need to modify this a bit.
you have to change “theScript” to the name of the script you want to disable
in this case, if you script’s name is “gunScript” that would be

var Script : gunScript;
Script = GetComponent(gunScript); 
Script.enabled = false; //disables the script