#When should I use workspace:GetPartsInPart() instead of .Touched?

1 messages · Page 1 of 1 (latest)

grim valley
#

In context of making a combat system. (M1 Hitbox)

light umbra
#

when because.

scarlet schooner
# grim valley In context of making a combat system. (M1 Hitbox)

The workspace:GetPartsIn...() methods are very good for instantaneous hitboxes like m1 hitboxes or simple slash hitboxes.

The .Touched event isn't that reliable, but is good enough if you just want to make a zone for example to keep track of parts that touched that zone over the span of time. (Without needing to spam workspace:GetPartsIn...())

Here is tutorial that I found useful regading this context https://youtu.be/-oVHaPCOIf4?si=oj8HDvPEvGIRbFRm

It goes over multiple ways you can create hitboxes.