42 is often referred to as the answer to the meaning of life, but rarely do I actually come across someone who knows what that means. Wherever you heard it from first, know that it comes from old inscriptions of magic. The dice that are used in most board games and especially card games, at least the way they are numbered, come from the same old school magic. If I remember, Coldplay titled a song that, but they were "most likely" referring to it's usage of a play on words. "Four-ty-two" becomes "Tea for two". Which if anyone knows last generations punk bands, Blind Melon's "No Rain" also makes a mention of it. It's basic alchemy, and the answer is pretty easy to figure out if you just look at 2 dice.
Aside from that ramble, the meaning of life in obviously dependent on the observer. Without the existence of your eyeballs there would be nothing to see, no ears nothing to hear and so forth. So without you, none of this would even exist to begin with, you are observing something that you had no part in it's creation other than altering and being altered by it. Depending on what you believe, either we decided for us, or someone decided for us what we should be doing and what we should not be doing. Exploding stars do not care if you are a bad person or a good person, you will still melt either way. The only answer that is hard to come by, is what really happens after death. None of us have been dead, yet...so no one can really say. Either way, a immortal soul traveling through dimensions and portals in divine realms, or a microcosmic inward deletion of consciousness at your last breath, both are equally terrifying on some level to anyone. If there is something, then it would probably be in your best interest to be a good person, for the sake of the living, as well as your afterlife. If there is nothing, then any logical thinking creature would come to terms with the fact that existence is good, and continuing that existence would be necessary for survival. Even if it's just a chemical reaction that propels people to take care of themselves and each other, seems ignorant to assume that you are exempt from that and willingly choose to be destructive.
Somewhere along the lines it got flipped. I can safely say we did it ourselves, but it's not really possible to trace to any one moment. At one time it was much easier to be good than bad, and being bad was like swimming against the current. Now it is much easier to be bad, and for most people harder to be good. I am not talking 20 years, but possibly thousands of years ago this happened and we just went along with it. So if I were to wrap up my short novel here, the meaning of life is to do everything you can, whenever you can, however you can, and in as many ways as you can, to reverse that. You and I will not be alive in 100 years, so the most urgent matter to attend to is to treat others good, identify problems in the world and decide what you can do something about and do it. Don't spend your days with your head in the clouds ignorant to issues, try to help fix them. Those are the source of most of our suffering on every level, and they can be fixed. Problem is, people have phones that make pancakes and social accounts, and that is as enchanting to a "civilized" person as a rattle is to an infant. It's colorful and makes noises, and it is one hell of a distraction. See how I said 'hell' there? eh...nvm.
sorry for long text, but it is a pretty big question.