mouse scripts

Is there a script i could use to get the location of the mouse relative to a plane or something? like where the mouse is on the plane?