I’ve been searching on the devforum for a bit to see how would you do an explosion that can do debounce and multi-hit. I’ve tried using tables like this
local tabel = {}
Explosion.Hit:Connect(function(thing,distance)
If thing.Parent:FindFirstChild(“Humanoid”) and not table.Find(thing.Parent,tabel) then
table.Insert(tabel,thing.Parent,1)
thing.Parent.Humanoid:TakeDamage(99)
end
end)
For me, there is a problem with this. This is totally fine when you’re dealing with damaging players as it accounts for debounce and multi hit, but when I want to hit these two dummies shown over here
It would run into a problem, as only one dummy would be hit because both have the same name.
One alternative is to create a part where the explosion would normally be, and whoever touches it takes damage, but it could screw up raycasts and pathfinding. How else could I make an explosion that would account for debounce and multi hit?