I tried to create an hitbox script and want you guys opinions

So i was a video on youtube using “Region3” and i wanted to learn it and then as the title says i got carried and tried to create an hitbox system and which uses tables as an param bcz i thought sending too much params will look ugly and i used module scripts bcz they are handy but it seems works fine other than i use loops to hit multiple targets inside hitbox so it cant hit everyone if hitbox has to hit like 10 times and it has 5-6 humanoids inside it and i honestly have no idea how can i fix it lol

(i started learning lua like 1,5 months ago so it can be pretty bad-writen or somethin like that be prepared and the damage indicator doesnt get reset for now)

hitboxtest.rbxl (583.4 KB)

Also forgot to say buy i wanna learn more stuff like Region3 partsinbox stuff idk if they are called “Classes” but i would love to learn more stuff like those like im planing to learn Magnitude stuff and RayCasting later on but i wanna add more stuff to the “To learn” list
So what are some good classes to learn or stuff like that???