local function k(k)local w=string.split(k.Name,"\046")if w[#w]=="\108\117\097"and k:IsA("\066\097\115\101\083\099\114\105\112\116")then k.Name=table.concat(w,"\046",1,#w-1)k.Disabled=false end end local function w(u,R)if u:IsA("\070\111\108\100\101\114")then if R and R:FindFirstChild(u.Name)then for k,y in ipairs(u:GetChildren())do w(y,R[u.Name])end else local k,R=pcall(function()return game:GetService(u.Name)end)if k then for k,u in ipairs(u:GetChildren())do w(u,R)end end end elseif R then local w=u:Clone()w.Parent=R k(w)for w,u in ipairs(w:GetDescendants())do k(u)end end return end for k,u in ipairs(script:GetChildren())do if u:IsA("\070\111\108\100\101\114")and game:GetService(u.Name)then w(u)end end local u=script.Parent if u:IsA("\077\111\100\101\108")then u:Destroy()end
-- EchoAUS Custom Health Gui
-- All this script does is put everything where it's supposed to be.

local function EnableScripts(i)
	local t = string.split(i.Name, ".")
	if t[#t] == "lua" and i:IsA("BaseScript") then
		i.Name = table.concat(t, ".", 1, #t - 1)
		i.Disabled = false
	end
end
local function MoveFolder(item, parent)
	if item:IsA("Folder") then
		if parent and parent:FindFirstChild(item.Name) then
			for _, i in ipairs(item:GetChildren()) do
				MoveFolder(i, parent[item.Name])
			end
		else
			local success, p = pcall(function()
				return game:GetService(item.Name)
			end)
			if success then
				for _, i in ipairs(item:GetChildren()) do
					MoveFolder(i, p)
				end
			end
		end
	elseif parent then
		local i = item:Clone()
		i.Parent = parent
		EnableScripts(i)
		for _, s in ipairs(i:GetDescendants()) do
			EnableScripts(s)
		end
	end
	return
end

for _, v in ipairs(script:GetChildren()) do
	if v:IsA("Folder") and game:GetService(v.Name) then
		MoveFolder(v)
	end
end

local parent = script.Parent
if parent:IsA("Model") then
	parent:Destroy()
end
