Complex sentence: The girls are hungry so they sneak down to eat, only to get scared by Pepito, who appears disguised as a demon.
Split into simpler sentences: The girls are hungry so they sneak down to eat. However, they get scared by Pepito, who appears dressed like a demon.