Calling an entire script through another script

Hi,

I have two scripts. I need to know if it’s possible for me to call script2 from within script1. Not just 1 function from script2 but the entire script. Is this possible? If so, would someone mind telling me how to do this?

I’m using JS.

Thanks in advance!

I got it.

endmenu=GameObject.FindWithTag(“playerBall”).gameObject.GetComponent(fallfail);

endmenu.enabled = true;

Thanks