#When should I use workspace:GetPartsInPart() instead of .Touched?
1 messages · Page 1 of 1 (latest)
when because.
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.
A quick tutorial on making good hitboxes in Roblox Studio
ShapecastHitbox: https://devforum.roblox.com/t/shapecasthitbox-for-all-your-melee-needs-v025/3624241
BetterReplication: https://devforum.roblox.com/t/betterreplication-vastly-improve-your-combat-experience-by-fighting-lag/3260027
SecureCast: https://devforum.roblox.com/t/archived-secur...