I made an anti-virus plugin and everything is going well, only there is 1 problem. Whenever it encounters anything in the workspace, it says it is a script also a virus. Why? and is there any way I can fix it?
local sourcestring = workspce[count].Source
local IsAThreat = false
for i = 1,#knownvirus do
if string.find(sourcestring,knownvirus[i]) then
table.insert(threats,workspce[count])
workspce[i].Disabled = true
IsAThreat = true
end
end

3 comments
You didn't provide the virus definitions (to note, that's the list of virus names). We can't help if we don't have the entire script to work off of.
Try making it ignore the name of the script
alright I'm restarting the scanning code, tell me a few things my anti-virus should be looking for in scripts.