Explain how the attack on Christianity developed from Marx and Nietzsche into Freud.?

What does Freud mean by the word, “illusion”? Are illusions always bad? Could Christianity and other forms of religion be good, helpful illusions? How would Nietzsche response.