Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Why doesn't this script delete all my viruses?

Asked by 9 years ago
local badNames = {"Infected", "TROLLSZOR", "U GETE POWNED NOOBLUNOOB"}

function isBadName(name)
if string.lower(table.concat(badNames, ' ')):match(name:lower()) then
return true
end
return false
end

for i, item1 in pairs(game.Workspace:children()) do
for i, item in pairs(item1:children()) do
if isBadName(item.Name) then
item:destroy()
end
end
end

0
Because, it is only searching for objects with the name infected trollzor or u gete powned noob. M39a9am3R 3210 — 9y
0
Try this plug-in it is more effective. http://www.roblox.com/Ro-Defender-Plugin-v8-4-item?id=142273772 M39a9am3R 3210 — 9y

Answer this question