Script Not Deleting Weak Parts

Why is this script not working? I put it in an anchored non-collidable part and the part of the script that destroys player’s parts works but not the part for parts with the Weak tag!

--Get variables
local acid = script.Parent
local acidHiss = game.SoundService.SoundEffects.AcidHiss

--Create the main function
local function dissolve(part:Part)
	local parent = part.Parent
	--If statements that checks for A) The part being a player part and B) The part being dissolvable
	if parent and parent:WaitForChild("Humanoid") then
		part:Destroy()
		acidHiss:Play()
	elseif part:HasTag("Weak") then
		part:Destroy()
		acidHiss:Play()
	end
end

acid.Touched:Connect(function(part)
	dissolve(part)
end)

the waitforchild humanoid is making it wait forever instead of moving on when there’s no humanoid use findfirstchildofclass instead

also please for the love of god dont copypaste a script inside multiple parts use collectionservice to tag acid(?) parts and manage them all from one script because that WILL come back to bite you later

dw I will only use like 1-3 also thats what I ended up doing so thanks!