Accessing scripts from another script

I’m trying to make a game where the level is randomly generating and i want to make my character “wait” till the loading has reached 100%, but i couldn’t figure out how so i was wondering of there’s a way to access a line or multiple lines of codes from a completely different script

var otherScript : OtherScript;
var someValue : int = 42;

function Awake ()
{
otherScript = GameObject.FindWithTag("OtherObject").GetComponent.<OtherScript>();
}

function Start ()
{
otherScript.aVariable = someValue;
otherScript.DoSomething();
}