Slap battles reverse glove

hi, i wanna know how was made “reverse” glove in slap battles. like each glove has its own code for interacting with reverse? or is there a better way?

I don’t know much about slap battle but from what I read I think there is no extra function for the reverse but rather I would have a function that manages the hitbox to get the Target and if I see an active reverse then I reverse the local of the Target and Attacker so that now the Attacker who has become the Target is the one who receives the attack

i would like to know the method of realizing the abilities of the gloves so that i can control them conveniently and, for example, reverse them