Please use code tags: Using code tags properly
You need to create a public variable to hold a reference to the other script that contains the variable you want, set it up properly in the inspector, then access the other script via that variable.
Google perhaps for “unity make public references”, or pretty much any tutorial out there will somewhere contain this process, as it is essential to all inter-script communication.