Could this work?
Male Yanmega with the ability Speed Boost Female Scolipede with Swarm They are both put in the daycare and since they are both in the bug egg group they breed. The egg received is a Venipede with Speed Boost.
No. The scolipede must have Speed boost for the offspring to have it when breeding 2 different pokes.