Same script not working on all objects

So let me simplify it and make it clear so you can understand how ridiculous this is.

a) I have a script called “talking” with which you can interact with an object and a GUI will appear.

b) I have two planes with different textures, both with the script “talking”.

c) The planes are EXACTLY the same, next to each other.

d) One works(1) the other doesn’t(2), meaning when I interact with (1) the GUI pops up but when I interact with (2) it doesn’t.

e) When I copy paste the (1) and insert the texture of the (2) the (2) magically works!

f) When I save my work, exit Unity and then reopen the scene (2) doesn’t work.

g) When I redo step e) it works until I exit Unity again and reopen the scene.

I have many exact planes in my scene with the “talking” script. Half of them weren’t working. So I did step e) and nearly all of them worked even after I exited Unity. Some are still not working though. I tried to create a new plane from start instead of copy/paste but it still doesn’t work!

Why is this happening? Why some work and others don’t?
Oh and get this - the remaining scripts that don’t work, when I do step e) they work! So there’s no invisible collider or anything invisible that doesn’t make them work, because they do. But after I exit Unity and restart it they are NOT WORKING?
So what the…is going on!?

Sorry for the long post but please help because this is hilarious and EXTREMELY annoying!..
Thank you!

I would say your problem has something to do with you re-setting the hud variable in Update. You are “activating” your talking script on OnGUI, but deactivating it on Update. So, maybe the problem is not that the script is not working, but you never get to see it working because it works only for a few milliseconds.

Why are you disabling hud in Update? I think you could handle all UI logic in OnGUI.