--				print("Hidden object "..i.Name.." detected in "..getAncestry(i).." ("..i.className..")") --not necessarily malicious, but may be. Remove only if you didn't except the object to be in there

			end
		end
	end
end

_G["ScanForViruses"] = function(m,n,w)
	local s = ""
	for a = 1, n do
		s = s.."- - "
	end
	if m == nil then return end
	if m == game.Stats then return end
	if m.Name == "GuiRoot" and m.Parent == game then return end
	if printAll then print(s.."Scanning children of "..m.Name) end
	local c = m:getChildren()
	if #c > 0 then
		for i = 1,#c do
			Check(c[i],n+1,w)
			if (c[i] == game.Workspace) then
				ScanForViruses(c[i],n+1,true)
			else
				ScanForViruses(c[i],n+1,w)
			end
		end
	end
end

ScanForViruses(game.Workspace,1,true)
ScanForViruses(game.Players,1,true)
ScanForViruses(game.Lighting,1,true)
ScanForViruses(game.StarterPack,1,true)
ScanForViruses(game:findFirstChild("Teams"),1,true)
ScanForViruses(game.Soundscape,1,true)
