Getting non static member of a script

I want to access float from another script that will change. I have this java code:

var Jet = MenuTest.JetNumber;

Where MenuTest - name of script, JetNumber - float from MenuTest that will change. Jet - float that will have the same number as JetNumber. But this code gives me an error:

Assets/ChosenJetModel.js(2,20): BCE0020: An instance of type ‘MenuTest’ is required to access non static member ‘JetNumber’.

Probably want to declare it this way in head of file(not in any functions)

var MenuTest : MenuTestScriptOrWhatever.js;
var Jet : float = MenuTest.JetNumber;

or perhaps

//in header//
    var MenuTest : MenuTest.js
    var Jet : float;
      
    function Start () {
    Jet = MenuTest.JetNumber;
    }

EDIT:

You need to make sure you drag the GameObject that has the “MenuTest.js” script attached over in the inspector to actually “Link” them together. Script can’t just “find” themselves by name, they have to be set. In this case, var MenuTest : MenuTest.js (if you notice in the inspector, it will say “Missing Script”), you’ll need to drag the gameobject that contains “MenuTest.js” over into that field.