some of its charge is transferred to the electroscope, and conducted down to the metal stem and gold leaf. This negatively charges both the stem and the gold leaf, which repel each other. This makes the gold leaf rise. If you touch the plate with a positively charged insulator, electrons flow into it from the plate, stem and leaf. Again, the stem and leaf will have the same charge and the leaf will rise.