Alright so, I’m a beginner to Roblox scripting as well, so I don’t know much about this. But I do know a handful of resources you could have use to.
DevForum Topics:
Take a look at this topic, titled “Best Way to Make Hitboxes”. I think that this topic will answer most of your questions.
Check out this topic - it goes over all the steps of making good hitboxes, and will teach you some of the fundamentals of a hitbox.
There’s actually a topic in the #resources category, created by @TeamSwordphin, that provides you with a useful Raycast Hitbox Module and steps on how to use it.
Let’s say you’re having a trouble with a hitbox. This topic should help out with that. I recommend you take a look at it because many properties of hitboxes will be discussed within the topic.
This topic goes over merging melees and hitboxes - you might learn a thing or two!
If you want to learn more about hitbox detection, then this topic is the way to go.
There’s also some additional information regarding hitbox scripting in this topic.
Developer Hub Articles:
While surfing through the topics above, I’m sure that Region3 will be mentioned quite a bit. If you don’t know what that is, read this article from the Developer Hub.
The term Raycasting will be popular as well. See this article for an intro to Raycasting.
YouTube videos:
From what I know about hitboxes so far, Magnitude would be another relevant property. See this video for a quick overview on that.
Quick reminder:
As you can see, there are so many topics that were made on hitboxes, so just a friendly reminder to search your question before making the same topic again. It just helps reduce spam on the Forum.
And that’s it!
Hope you found each of my resources useful and able to answer some of your questions!