is your floorHit a Vector3? If not, you will have to do the following to decrease in all positions: "Vector3 playerToMouse = new Vector3 (transform.position.x - floorHit, transform.position.y - floorHit, transform.position.z - floorHit)" t tiny