Replicating rotation

i’m having trouble replicating the rotation of my character,but whatever i try it doesn’t work,i’m basing my code on the top down template with a mouse hit to rotate the character but idk