Covert mouse location to world space

When i try to get the location if the mouse is in font of the player it comes sort of the location.