How do I call a variable from a script in one object into a different script in a different object?

I created the public object for my other object
I used get component to retrieve the class within the script
but when I try to call the variable I created I get the NullReferenceException
is there a step I missed?

Hello.

I’m sorry to say this, but, you are not asking about Unity, you are asking about most basic coding.

Yo umust spend your time in learning this things.

I recommend you to look on youtube for tutorials in your language (so it will be more easy to understand) about REFERENCES, UNITY SCRIPT REFERENCES. Try to find the most simpleone, do not need to understand the deep part, only the basic.

Post closed,
Bye