How would i make an attack hitbox?
I’ve tried raycasts but they can only return one instance unfortunately.
How would i make an attack hitbox?
I’ve tried raycasts but they can only return one instance unfortunately.
You could use WorldRoot:workspace:GetPartsInPart
if you want to detect parts within another part. Alternatively, you could use workspace:GetPartBoundsInBox
which removes the need to have a part and you could just input the CFrame and size and it’ll give you the parts within that position.
perfectly, I recommend creating a module script with functions for various formats, as you prefer, such as just a square, circle, radius, among others.
This module should be all you need.