How to replicate character rotation controlled by mouse position?

Example of what i have tried that hasn’t worked: