Defeating Egg Walker as Tails in Sonic Adventure is all about timing your spin attacks. When Eggman kicks at you, spin against his legs.
After a while he'll kick three or four times in a row. Then watch closely—one of his legs will start blinking with tiny sparks. That's your cue to spin attack the last leg he kicked, and you'll wear him down ^^