means that
wealth can provide comfort and security but cannot by itself guarantee love, fulfilment or lasting happiness.
but
With money, we can have a better quality of life and able to achieve and enjoy what we want; that will make us happy.
For example, money can't buy spirituality, good relationships, friendships, all those values that can bring happiness This is a situation where “Money can't buy happiness” applies.