How do I make this code better, it currently is a 360 aiming system for a 2.5d sidescroller, but dosnt work correctly

Current blueprint