accesing functions of other script

I am trying to acess a die function of other script

public FPSPlayer fpsscript;
void update ()
{
if (health<0)
fpscript.die();
}

getting this error
FPSPlayer.die’ cannot be used as method or delegate

how do i call this script??

I don’t know what fpscript.die is. It might be helpful to show this sort of information.

Judging by the error, it’s not a method or a delegate. And you seem to want it to be.

From your usage of it, it should look like:

public void die()
{
    // code here
}

Is that what it looks like?

Oh sry it was actually Die instead of die.
die was another variable in same script.
My mistake