-- 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
