Complex sentence: At first, Alice hopes that if she does, he will then free her, or at least finally put her out of her misery, but instead Ray tells her that she will train the new Alice to his liking.
Split into simpler sentences: At first, Alice hopes that if she does, he will free her, or at least finally put her out of her misery. Instead, Ray tells her that she will train the new Alice to his liking.