local F={}for O,e in pairs(parts)do local h=PartUtility.GetCharacterFromInstance_R(e)if not h then continue end if F[h]then continue end F[h]=true APICombat.ApplyDamageToCharacter(owningPlayer,h,WeaponDefinition)end Explosion.Parent=workspace local O=Instance.new("\080\097\114\116")O.Position=Explosion.Position O.Anchored=true O.Transparency=1 O.CanCollide=false O.Parent=workspace

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
