This script was created by obedientyankees96, Basically what it does is runs through all children of workspace, and checks if it has the same name as the ones in the table Viruses. Many people in the roblox community have added onto the viruses table, so I found the most updated one, and added some more to it.
001 | Quarantine_Instead_Of_Delete = true |
007 | q = Instance.new( "Model" ) |
009 | viruses = { "Virus" , "OH SNAP U GOT INFECTED" , "Infected" , "ROFL" , "Snap Reducer" , "SnapReducer" , "Vaccine" , "Snap-Reducer" , |
010 | "Anti-Lag" , "Anti Lag" , "AntiLag" , "Wildfire" , "AntiVirus" , "Anti-Virus" , "Anti Virus" , "4D Being" , "No samurai plzzz" , "OHAI" , |
011 | "Guest_Talking_Script" , "Guest Free Chat Script" , "lol" , "LOL" , "bob" , "BOB" , "Snap Remover" , "nrhbord" , "SnapRemover" , |
012 | "QuarantinedVirus" , "dåååååååååååååång.........you got owned..." , "OHAI" , "No samurai plzzz" , "Components.dat" , "lireon" , |
016 | function ScanWorkspace() |
017 | ws = game.Workspace:GetChildren() |
018 | for i = 1 ,#viruses do |
021 | check = ws [ w ] :findFirstChild(viruses [ i ] , true ) |
023 | if Quarantine_Instead_Of_Delete then |
024 | table.insert(found, 1 ,check.Name) |
027 | table.insert(found, 1 ,check.Name) |
031 | function ScanLighting() |
032 | ws = game.Lighting:GetChildren() |
033 | for i = 1 ,#viruses do |
036 | check = ws [ w ] :findFirstChild(viruses [ i ] , true ) |
038 | if Quarantine_Instead_Of_Delete then |
039 | table.insert(found, 1 ,check.Name) |
042 | table.insert(found, 1 ,check.Name) |
046 | function ScanPlayers() |
047 | ws = game.Players:GetChildren() |
048 | for i = 1 ,#viruses do |
051 | check = ws [ w ] :findFirstChild(viruses [ i ] , true ) |
053 | if Quarantine_Instead_Of_Delete then |
054 | table.insert(found, 1 ,check.Name) |
057 | table.insert(found, 1 ,check.Name) |
061 | function ScanPlayers() |
062 | ws = game.Players:GetChildren() |
063 | for i = 1 ,#viruses do |
066 | check = ws [ w ] :findFirstChild(viruses [ i ] , true ) |
068 | if Quarantine_Instead_Of_Delete then |
069 | table.insert(found, 1 ,check.Name) |
072 | table.insert(found, 1 ,check.Name) |
076 | function ScanStarterGui() |
077 | ws = game.StarterGui:GetChildren() |
078 | for i = 1 ,#viruses do |
081 | check = ws [ w ] :findFirstChild(viruses [ i ] , true ) |
083 | if Quarantine_Instead_Of_Delete then |
084 | table.insert(found, 1 ,check.Name) |
087 | table.insert(found, 1 ,check.Name) |
091 | function ScanStarterPack() |
092 | ws = game.StarterPack:GetChildren() |
093 | for i = 1 ,#viruses do |
096 | check = ws [ w ] :findFirstChild(viruses [ i ] , true ) |
098 | if Quarantine_Instead_Of_Delete then |
099 | table.insert(found, 1 ,check.Name) |
102 | table.insert(found, 1 ,check.Name) |
107 | ws = game.Debris:GetChildren() |
108 | for i = 1 ,#viruses do |
111 | check = ws [ w ] :findFirstChild(viruses [ i ] , true ) |
113 | if Quarantine_Instead_Of_Delete then |
114 | table.insert(found, 1 ,check.Name) |
117 | table.insert(found, 1 ,check.Name) |
121 | function ScanSoundService() |
122 | ws = game.SoundService:GetChildren() |
123 | for i = 1 ,#viruses do |
126 | check = ws [ w ] :findFirstChild(viruses [ i ] , true ) |
128 | if Quarantine_Instead_Of_Delete then |
129 | table.insert(found, 1 ,check.Name) |
132 | table.insert(found, 1 ,check.Name) |
151 | print ( "Scan Complete" ) |
152 | q.Parent = game.Lighting |
153 | if Print_Results then |
154 | print ( "-----------------------RESULTS-----------------------" ) |
155 | if table.maxn(found) > 0 then |
159 | elseif table.maxn(found) = = 0 then |
160 | print ( "No Viruses Were Found" ) |