I cant get my flashlight to toggle

I’m trying to make it create the object flashlight in my players hand at a specific point and when I press on the flashlight button, and it doesn’t make the flashlight. But when I remove the variables, it creates the flashlight but then I can’t remove the flashlight. I am currently using a global variable, I tried a scene variable, but it didn’t change anything. I also tried removing the trigger once it didn’t change anything either, at this point i am currently stuck. Any help would be greatly appreciated.

What ZeroX4 means is make the variable Flashlightequipped a boolean, check it’s value and create or destroy the flashlight depending on whether Flashlightequipped is true or false.

Because what’s happening is that the first clicked event set the variable to 1, meeting the conditions for the second clicked event. So the two events are processed whenever NewSprite6 is clicked, leading to the flash light being created and then deleted immediately after, giving the appearance if it not being created at all.