So if I press the lever now, I would like to simultaneously trigger a piston and another goes back to parallel. How can I implement this?
Then 3 Redstone wires from the switch to the Piston and at the 3rd a block and a Redstone torch between the Redstone
Very easily! You have to connect your two Piston with a Redstone circuit.
P = Piston - R = Redstone - S = switch
P-R-R-R-R-P-R-S
Of course you can also vary e.g. So:
P-R-R-P-R-S
How much Redstone distance does not matter, the main thing is a redstone between Piston and Piston and Piston and switch!
If you need a picture, please let me know. But it will take another 10-20 minutes to get to the PC to show it to you!
P.S: There are also tutorials on YouTube.
If you need a good introduction to redstone or do not get it, just say what they say
As far as I remember, a pistol is a non-conductor so this kind of series connection should not work