Complex sentence: While they were shooting the movie, they were inspired by the creativity and optimism of the people, but they were shocked by the conditions of the favelas.
Split into simpler sentences: While they were shooting the movie, they were inspired by the creativity and optimism of the people. On the other hand, they were shocked by the conditions of the favelas.