Toggle Switch with a Predicate

Ok so i have a predicate that i have made. I want to make it to where when someone does predicate requirements it will turn on night vision and when they do the same requirements it will turn it back off. I am struggling because the predicate detection its constant and so when i try to make a toggle with a scoreboard it just flips on and off at the same time. any tips?

Edit: Let me explain this better.

I am trying to make a thing where when a person holds a torch, crouches, and jumps at the same time it will toggle night vision for them. I have a predicate for detecting when someone is doing all 3. The predicate is based of input tho so if you hold it, itll send a true signal every tick the input is held.

I am trying to make it to where it can take this input and toggle. My problem is that because it is sending a true signal for every tick its held it then causes my table to change every tick. Even if you dont mean to hold them down it still will detect it for multiple ticks there for making every tick its detected switch from on to off. Thats not what i want at all. I want it to turn it on when they do it but not back off untill they let go and do it again.

reddit.com
u/Gay-N-Autistic — 9 days ago

Help wanted for sr glvoes.

im SO CLOSE to getting all gloves. All thats left are the fucking slap royal gloves and oh boy and i struggling. I need help with these.. Idc if its tips, in game help for getting kills or even just letting someone do it for me (id prefer not to but ig it works) but im so fucking close and gent even get a win. I can prob get glaxe on my own but idk. Would anyone wanna help me? My goal is for all gloves and masteries (and on the masteries end im like 5-6 away)

I need help i beg

u/Gay-N-Autistic — 18 days ago