I need help please anything will help

Me and my friend have a free co op world not a rent server . I been have this problem for a while it only does it on my world it works fine on a server . The problem is when I try to swing my weapon it does the Animation over and over with out doing a full attack Animation.