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)