Character 90 degree rotation

I want to make my character rotate 90 and -90 degrees using flipflop. I’m new to all this so excuse me for being a complete noob :smiley: Just to give you an idea, I want it to work like in KetchApp’s game “ZigZag”. I uploaded screenshots of a couple things I tried, one worked but was very laggy and unresponsive, and the second one didn’t work at all. Thank you for the time and for the solution! :slight_smile: