Have you ever built a fancy redstone contraption just to find out that it needs those large clunky levers in order to work? Well, have no fear because there is a more complex method for fixing that problem. It is known as a T Flip-Flop and it can be the love of your life. Now, the version I'm showing you is compact and doesn't use pistons, which lag the server to no ends. Here we go.
Step 1 The Base of a T Flip-Flop
You need a set-up exactly like above for the T Flip-Flop. The side with the two bocks on top of each other is the input and will have the button placed on it.
Step 2 Placing Redstone Torches
All torches are above the ground.
Step 3 Redstone Repeaters
All redstone repeaters must be set to the fourth setting or this will not work.
Step 4 Redstone
Note the line of redstone coming out of the machine is the output, and must be connected to your redstone contraption for it to work.
And there you have it. Your own T Flip-Flop.