yes
local QueryOptions = zone.QueryOptions.new()
QueryOptions.ThrottlingEnabled = true
local params = OverlapParams.new()
params.FilterType=Enum.RaycastFilterType.Exclude
params.FilterDescendantsInstances={char}
params.MaxParts=1
params.RespectCanCollide=true
params:AddToFilter(part2)
local start = zone.fromPartParallel(part2,QueryOptions)
start:BindToHeartbeat(params)
part2.Destroying:Once(function()
start:Destroy()
end)
local hitted={}
start:ListenTo("BasePart","Entered",function(hit:BasePart)
if table.find(hitted,hit.Parent) then return end
if hit:IsDescendantOf(char) then return end
start:UnbindFromHeartbeat()
table.insert(hitted,hit.Parent)
part2.CanQuery=false
part2.CastShadow=false
part2.CanTouch=false
local enemy = hit.Parent
if enemy:FindFirstChildWhichIsA("Humanoid") then
local hum = enemy:FindFirstChildWhichIsA("Humanoid")
--do damage
end
end)
part2 is hitbox