"No matter what happens in life, be good to people. Being good to people is a wonderful legacy to leave behind."- Taylor Swift.
source
Goodness of the heart gives joy and hope the the individual who receives it. If you can shine your flight for someone, you will have helped them tackle the most difficult situation of their lives.
When you share some goodness, you are in extension pushing the envelope to draw out the goodness of humanity to bear in the state of affairs that life is known to have.
Leaving a legacy is important, be it a good one or a questionable one.
The legacy we leave behind has it's place no matter where you existed from, how you existed and how long you walked the face of the earth.
If you can make your life more about bringing joy and purpose to the world, you will be leaving a legacy that will make the world a better place for someone.