Complex sentence: When hit by the Riddikulus charm, it turned into a cockroach, while in the film, it turned into a deflated balloon.
Split into simpler sentences: When hit by the Riddikulus charm, it turned into a cockroach. In the film, it turned into a deflated balloon.