Issue when getting a variable from another script.

Welcome to the Unity forums!
A few thing to help you out to get faster and more useful responses:
A) post in the correct forum. (I moved this to “Scripting”)
B) __ use code tags. __
C) When you have errors like that, it will tell you exactly what line it is on. Look at the error and check what line number. Also, typically double clicking on the error will take you the exact spot in your text editor.