How do you Copy Pokemon?

In emerald you can go to the battle tower in battle frontier put the Pokemon you want to copy into your p.c. then save the game. Withdraw those Pokemon and do one of the challanges. But when it asks you to save turn it off. And if you do this correctly the Pokemon should be in your box and your party. See its simple.