If you want to leave a legacy before you go, push personal needs and wants to the back burner. Live life for a higher context – if not for humanity, then for your community, friends, and family. See past your own problems and look into the problems of others. Make it your mission to heal the wounds of the world. Target a problem you believe you can solve with your talents, and do not rest until the job is done.
The world will notice. Before long, your needs and wants will be fulfilled in thanks. Your deeds will enrich lives, your name will live on, and life will be good. But only if you do it for others, not yourself.