Complex sentence: She hides in a closet and sees a man with a gun coming in.
Split into simpler sentences: She hides in a closet. While in there she saw a man with a gun coming in.