So I’m currently making an attack for a project right now, and I was planning to use raycasting, but after thinking, my attack has an area of attack, and raycasting may not be the best.
OverlapParams is a new feature that allows integral raycasting, much like Region3, except it is far easier to work with and it was designed for better workflow. “OverlapParams” specifically, is a filter for possibly involved parts. Functions similarly to Raycasts, but with integrals.
Perhaps you should use OverlapParams for area damage as stated in the OP.
It really depends. There are a couple modules for raycast melee hotboxes but they are expensive to run.
If this is an area attack or a very large AOE attack you might want to use Region3 or if you want to have an accurate melee attack or projectile based use raycast.
As stated by other people, using Region3 is not recommended anymore, instead, the use of the new SpatialQuerry Api (OverlappParams) is. Functions such as worldroot:GetPartsBoundsInBox and worldroot:GetPartsBoundsInRadius replace the need for region3 in part detection.