--Type "ScanForViruses(model,0,true)" to scan a model after the initial scan. model should be the model (eg. game.Workspace.Model). Type "ScanForViruses(model,0,false)" to reveal all scripts.


function getAncestry(i)
	local s = ""
	local p = i.Parent
	s = p.Name
	while p ~= game do
		p = p.Parent
		s = p.Name.."."..s
	end
	return s
end

function Check(i,n,w)
	local s = ""
	for a = 1, n do
		s = s.."- - "
	end
	if i == nil then return end
	if printAll then print(s.."Checking "..i.Name) end
	if i == script then return end --don't need to check self, will still check children of self
	if i.className == "Script" then
		for x = 1, #maliciousscripts do
			if i.Name == maliciousscripts[x] then