Access vars from other js scripts

Hi, I have two scrips(js). One with a simple score keeper and another(we will call it enemy script) that has a few functions(one is die). What I have been trying to do is on the simple score keeper script is detect when the enemy script uses the function die. Thats it. I am a beginner and a little confused. So basically what I need to do is have one script be able to tell when another script is doing something. Thanks for your time. I have been looking up syntax like get component and such but I am having trouble figuring this out.
Here is my score keeper script:

var MyScore : float = 0;

function Update () 
{
	guiText.text = "Score : " + MyScore;
}

You can’t “detect when another script is using function”. What you do is call funtion B from function A to let B know A was called. Or more accurately “do B when A happens”

So call “addScore()” from your “die()” function. How to call functions in other scripts has been covered plenty of times here.