Dear student, The particles which passed straight through the gold foil were alpha particles, which are positively charged. The few alpha particles that were deflected were being repelled by nuclei, which are also positively charged. Most of the alpha particles passed straight because they didn't encounter any nuclei. Regards,