Cant get bool to be true

I am trying to make it so when i enter a trigger it will set the bool true and when i exit it will set the bool false. Then if the bool = true and I am holding down Submit it will SetActive false. I am not getting any errors but it still wont work. The second one is under Void Update.
94047-script2.png

Please paste actual code (including line numbers), not pictures of code; it makes it much easier for people to help you.

Your problem is on this line:

if(TriggerOn = true)

which should be:

if(TriggerOn == true)

Well, have you declared a public bool outside the void? If you haven’t declared the bool, you’re basically grabbing virtual thin air and trying to make something out of it, like Tanoshimi said, give use more than a bit of code, screenshot the entire script.