If my life is motivated by my ambition to leave a legacy, what I'll probably leave as a legacy is ambition. But if my life is motivated by the power of the Spirit in me, if I live with the awareness of the indwelling Christ, if I allow His presence to guide my actions, to guide my motives, those sort of things. That's the only time I think we really leave a great legacy.
If your life is motivated by your ambition to leave a legacy, what you'll probably leave as a legacy is ambition.