Life Orb Adaptability Timid
Moveset EVs
~ Nasty Plot
~ Tri Attack
~ Dark Pulse
~ Hidden Power Fighting / Substitute
4 HP / 252 SpA / 252 Spe
Nasty Plot allows Porygon-Z to reach a ridiculously high Special Attack stat of 810 with Modest, or 738 with Timid, which, needless to say, allows it to easily sweep unprepared teams. After just one boost, the only ways to beat this set are to outspeed it or use Chansey with Thunder Wave. STAB Tri Attack will destroy anything in its path after a Nasty Plot boost. Dark Pulse is there to hit Ghost-type Pokemon such as Dusclops who are immune to Tri Attack. Keep in mind that a neutral Tri Attack does the same damage as a super effective Dark Pulse, so unless you need to flinch a Pokemon like Celebi, Tri Attack is the best option for the 20% chance to burn, freeze, or paralyze the opponent. Hidden Power Fighting is in the last slot to hit Steel-type Pokemon who would otherwise wall this set. Substitute could also be used over Hidden Power Fighting to block status moves like Thunder Wave. Thanks to Adaptability, Tri Attack can still hit Steel-type Pokemon hard, so Substitute is a viable option.
this is pretty much all you'll need for a porygon-z set you could use either a choice scarf or specs just replace nasty plot with whatever move fits best in that last spot.