Can someone help me make a targeting Macro

Looking for help to make a Targeting Macro.

For every press of the same button no modifier it would cycle between targeting Party 1.2.3
Ik its possible but i cant figure it out plz help xoxo thanks in advance

The one i made seems to have a bit of lag between each press. its not very fast.

post what you have so we can take a look at it