How do you access a script on a specific object in C#

Trying to do the above but get the error: “Assets/pedestriannew.cs(156,41): error CS0176: Static member `bin.binFull’ cannot be accessed with an instance reference, qualify it with a type name instead”. Trying to change “public static bool binFull = false;” in bin.cs. Offending code is as follows:

//targetBin is just a string with the object's name in it.
GameObject Object1 = GameObject.Find(targetBin);
bin Script1 = Object1.GetComponent<bin>();
Script1.binFull = true;

Your binFull variable is static. Don’t make it as a static variable and you can access it through your Script1 instance reference.