Hi Misty185:
Cooked or wet Pasta is starch that has hydroxyl groups that can hydrogen bond together (stick together)and also hydrogen bond with the water . Oil is a triglyceride (triester) with long hydrophobic alkyl groups. The oil on the pasta, coats the pasta and stops the hydroxyl groups of the starch from hydrogen bonding together (sticking together) by making the surface of the pasta coated with oil, hydrophobic.
Best Regards,
Doc77