You fixed it! A suggestion I have is that you might want to make it wait a second after the kill if looting for a specific item is enabled. That way the script checks if the item dropped and picks it up. Otherwise, the script runs back haphazardly mid fight to pick up the item and looks really weird.
Looting is not working properly from what I see. I set it to fight crawling hands overnight and told it to pick up anything over 8k and all Coins dropped. I come back to an inventory of leather gloves and 0 coins. However, the script is working excellently in terms of just pure powerfighting and looking "human".