How do i only rotate the sprite depending on the x axis

How do i only rotate the sprite only on the x axis here is some footage Screen capture - 68e8054fe75b0e4bf52ef600928c525c - Gyazo

solved people thanks for the help …