Well my game is kind of laggy the last time and I used this script but it doesnt really work because everytime I use a tool alot of times then it lags and I lose connection. Can you help me? Script:
--Scan Options:
------------------------------------------------
Print_Scan_Results = true
------------------------------------------------
Quarantine_Instead_of_Delete = true
------------------------------------------------
q = Instance.new("Model")
q.Name = "Quarantine"
classes = {"Fire"}
names = {"4D Being", "H75", "Hello...I åm Your New Lord Lolz", "Spread", "Anti-Lag", "Vaccine", "ayub32", "dåååååååååååååång.........you got owned...", "micolord", "", "AmazingOmegaJames"}
hidden = Instance.new("StringValue")
file = {}
function Start()
workspace = game.Workspace:GetChildren()
qu = q:GetChildren()
index = {}
virus = 0
function Scan(object)
for i = 1,#object do
inside = object[i]:GetChildren()
if Malicious(object[i]) then
virus = virus+1
Name(object[i])
Quarantine(object[i])
else
if #inside > 0 then
Scan(inside)
end
end
end
end
function Malicious(class)
for x = 1, #classes do
if class.className == classes[x] and #(class:GetChildren()) > 0 then return true end
end
for x = 1, #names do
if string.lower(class.Name) == string.lower(names[x]) then return true end
end
return false
end
function Hidden(class)
for x = 1, #classes do
if class.className == classes[x] then return true end
end
return false
end
function Name(malware)
cur = malware
file[1] = "."..cur.Name
while cur.Parent.Name ~= "Workspace" do
cur = cur.Parent
file[#file+1] = "."..cur.Name
end
inde = "game.Workspace"
for j = 1, #file do
inde = inde..file[#file+1-j]
end
file = {}
inde = inde.." ("..malware.className.." Class)"
index[#index+1] = inde
malware.Parent = q
end
function Quarantine(malware)
if malware ~= nil then
contain = malware:GetChildren()
if Hidden(malware) then
h = hidden:clone()
h.Name = malware.Name
h.Value = "Original Class: "..malware.className
h.Parent = malware.Parent
for j = 1, #contain do
contain[j].Parent = h
end
malware:remove()
malware = h
end
contain = malware:GetChildren()
for j = 1, #contain do
Quarantine(contain[j])
end
end
end
Scan(workspace)
if virus > 0 and Quarantine_Instead_of_Delete then
q.Parent = game.Lighting
end
if virus > 0 and Print_Scan_Results then
print("--------------------")
print("Scan Results:")
print("Potentially malicious objects were found in the following locations:")
for i = 1, #index do
print(" -- "..index[i])
end
if Quarantine_Instead_of_Delete then
print("These objects have been quarantined to the Lighting Directory.")
else
print("These objects have been removed.")
end
print("--------------------")
Start()
wait()
Start()
end
end
Start()
game.Workspace.ChildAdded:connect(Start)

1 comment
This code was created by another user, and is very old, so it may not work now. And are you sure it's a ROBLOX 'Virus'? Are you sure it isn't your connection, or amount of 'BasePart' type instances in your game? Else, it may be a problem only ROBLOX can fix.