For the HGSS code, you have to grab the pokemon, hold L (R in my case) while you are holding the pokemon, move the pokemon to a different slot in the box, place it there (release L/R - optional), change boxes, come back to the original box, and then you should have a clone.
If you want to battle today, I'm free right now.