This is a bunch of code that you can use to learn how to do hitboxes and hurtboxes in an easy to manage way.
so it's a tutorial, then. Thanks for the speedy answer