If you don't know how to make plugins, use the PLUGIN REQUESTS section.
I did not understand how to apply your solution in the script, the only thing I could achieve was to create a delay in the change of arms, that's why I say I don't know how to apply it