People need to do damage on a ship they can only see because you're spotting it. If they get within spotting range themselves (and thus no longer rely on you), you won't get points. If you stop spotting the ship (and thus the ship is no longer spotted), you won't get points.
Getting the spotted ribbon makes no difference, and neither do you need to be invisible.