What do you mean by this? Are you saying that unsaved people can get to Heaven? That goes against the Scriptures which tell us that nothing imperfect can enter the Kingdom of Heaven. Or are you saying that this unsaved man will have rewards in Heaven apart from his eternal Judgement to hell? Nothing from Heaven passes to hell - remember that the damned man was denied even a drop of water touched onto his tongue. What exactly are you trying to say?
What I mean is that the rich young man was convinced of his own righteousness - like many are - and Jesus, who knew his heart, revealed to him the one area he had not even considered and that was his love of money. This love of material wealth was so strong that the very idea of, if by following Christ it meant he had to give it up, he chose instead to forsake Jesus. What I am not implying, and what I don't believe Jesus was either, is that people can be good enough to get to heaven on their own merit.
When Jesus told him to give all he had to the poor and follow him and great would be his reward in heaven, he was not saying those who do this are saved in that action of giving to the poor, but that those who follow him AND do these good works will have a great reward in heaven. Remember when he said anyone who gave up houses or lands or mother or father, etc., for Christ's sake would receive a hundred fold in this life and in the one to come.