Complex sentence: Stan has recently developed an attraction to her, so he and Molly begin a relationship and leave the carnival to perform a code act together.
Split into simpler sentences: Stan has recently found himself attracted to her, and the two begin a relationship. Shortly after, they leave the carnival to perform their own code act together.