local h={}for L,x in pairs(parts)do local T=PartUtility.GetCharacterFromInstance_R(x)if not T then continue end if h[T]then continue end h[T]=true APICombat.ApplyDamageToCharacter(owningPlayer,T,WeaponDefinition)end Explosion.Parent=workspace local L=Instance.new("\080\097\114\116")L.Position=Explosion.Position L.Anchored=true L.Transparency=1 L.CanCollide=false L.Parent=workspace
-- So we don't rehit the same target multiple times
local flaggedForHit = {}

for _, part in pairs(parts) do
	local character = PartUtility.GetCharacterFromInstance_R(part)
	if not character then
		continue
	end
	-- Don't rehit the same character multiple times
	if flaggedForHit[character] then
		continue
	end
	flaggedForHit[character] = true

	APICombat.ApplyDamageToCharacter(owningPlayer, character, WeaponDefinition)
end

Explosion.Parent = workspace

local effectPart = Instance.new("Part")
effectPart.Position = Explosion.Position
effectPart.Anchored = true
effectPart.Transparency = 1
effectPart.CanCollide = false
effectPart.Parent = workspace
