Defining the line of sight

Hey guys…

I’m doing a side scroller and I would like the aim to be guided by the mouse.
The problem is that I have no idea how to do this script. can anybody help me?