Rotate With Crosshair Input

I need help with a script.

I want an entity to rotate when the crosshair is touching it with a 2d screen.
Please someone help with this script.