Dagger not hitting enemies

When I was on the beach, someone mentioned that their dagger wasn’t working most of the time. I tried it out and my dagger seemed to be fine. Then a giant crab appeared, and my weapon would not deal damage to it. (When it died I was unable to pick up any loot) After that, I went to go fight some normal crabs and couldn’t damage them either. I tried clicking slowly instead of just spamming mouse 1 (trying to swing as fast as possible) and I was able to hit the crabs.

Experiencing the same thing while attacking Spiders, none of my dagger swings are dealing any damage unless I’m directly in front of the spider hitting it’s head.