Help rotating 2d sprite

Hi am trying to rotate a 2d sprite with a mouse I have the the blueprint for it working but it does a full 360 turn I only want to rotate it left and right ty for help

what it sounds like you need is plane restraint Axis or constraints under physics in the actor details panel. Best Of Luck