Body part to transparent

Hello guys,
I’ve been trying to make a whole body part of a player transparency to 1 but the code I have written is a bit long. Is there anyway to shorten my code?

	for _, player in pairs(playersPlaying) do
		local character = player.Character or player.CharacterAdded:Wait()
		for _, body in pairs(character:GetChildren()) do
			for _, parts in pairs(CharacterBodyParts) do
				if body.Name == "Pal Hair" then
					local handle = body.Handle
					if handle then
						handle.Transparency = 1
					end
				end
				if body.Name == parts then
					body.Transparency = 1
					
					print("All body part are transparent")
				end
			end
		end
for _, player in pairs(playersPlaying) do
		local character = player.Character or player.CharacterAdded:Wait()
		for _, body in pairs(character:GetChildren()) do
           if body:IsA("BasePart") or body:IsA("MeshPart") or body:IsA("Part") then
              body.Transparency = 1
           elseif body:IsA("Accessory") and body.Name == "Pal hair" then
                body:FindFirstChild("Handle").Transparency = 1
           end
	    end
end

iterate over all descendants maybe?
character:GetDescendants
will return all children, children of children and so on.