function Default()Avatar=nil Hold=nil end function SearchTable(w,i)for i,Y in pairs(i)do if Y==w then return true end end return false end function MorphHead(w)for w,i in pairs(w:GetChildren())do if SearchTable(i.ClassName,AvatarHead)==true then i:Remove()end end wait(1)for i,Y in pairs(Head:GetChildren())do if SearchTable(Y.ClassName,AvatarHead)==true then(Y:Clone()).Parent=w end end end function MorphPlayer(w)for w,i in pairs(w:GetChildren())do if SearchTable(i.ClassName,AvatarBody)==true and(SearchTable(i.ClassName,ExcludedClasses)==false and SearchTable(i.Name,ExcludedNames)==false)or i.ClassName=="\072\097\116"then i:Remove()end if i.ClassName=="\080\097\114\116"and i.Name=="\072\101\097\100"then MorphHead(i)end end wait(1)for i,Y in pairs(StealthLava.Parent:GetChildren())do if SearchTable(Y.ClassName,AvatarBody)==true and(SearchTable(Y.ClassName,ExcludedClasses)==false and SearchTable(Y.Name,ExcludedNames)==false)then(Y:Clone()).Parent=w end end wait(1)end

function Default()
	Avatar = nil
	Hold = nil
end

function SearchTable(Item, List)
	for i, s in pairs(List) do
		if (s == Item) then return true end
	end
	return false
end

function MorphHead(Part)
	-- Sub Morph (1/2): Remove Player Customizations
	for i, s in pairs(Part:GetChildren()) do
		if (SearchTable(s.ClassName, AvatarHead) == true) then
			s:Remove()
		end
	end
	wait(1)

	-- Sub Morph (2/2): Add Items To Head
	for i, s in pairs(Head:GetChildren()) do
		if (SearchTable(s.ClassName, AvatarHead) == true) then
			s:Clone().Parent = Part
		end
	end
end

function MorphPlayer(Avatar)
	-- Morph (1/2): Remove Player Customizations & Morph Head
	for i, s in pairs(Avatar:GetChildren()) do
		if (SearchTable(s.ClassName, AvatarBody) == true) and (SearchTable(s.ClassName, ExcludedClasses) == false) and (SearchTable(s.Name, ExcludedNames) == false) or (s.ClassName == "Hat") then
			s:Remove()
		end
		if (s.ClassName == "Part") and (s.Name == "Head") then MorphHead(s) end
	end
	wait(1)

	-- Morph (2/2): Add Items To Avatar
	for i, s in pairs(StealthLava.Parent:GetChildren()) do
		if (SearchTable(s.ClassName, AvatarBody) == true) and (SearchTable(s.ClassName, ExcludedClasses) == false) and (SearchTable(s.Name, ExcludedNames) == false) then
			s:Clone().Parent = Avatar
		end
	end
	wait(1)
end
