Complex sentence: Having redeemed himself, Vader asks Luke to remove his mask and says that he had good left in him after all, before he dies peacefully.
Split into simpler sentences: Having redeemed himself, Vader asks Luke to remove his mask. Vader says he had good left in him after all and dies peacefully.