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 » Scripting Helpers
Home Search
 

Re: I have some odd infection? Please help!

Previous Thread :: Next Thread 
MonkSaru is not online. MonkSaru
Joined: 29 May 2010
Total Posts: 166
01 May 2014 09:02 PM
I made a script to get rid of it but it did not work. Whenever i try to run the script the entire game crashes from this "Virus" on my studio. I never put any free models in my place so i have no clue how its even in there to begin with. I open a blank place and the virus shows up, deleting them manually just makes them replicate themselves even more. The Object that holds the script that clones them is called inFECtion and the script contains this code. please how do I remove this its in all my places it makes no sense. I even reinstalled my studio its still there.

if script.Parent.className ~= "RotateP" then
local p = Instance.new("RotateP")
p.Parent = workspace
p.Name = "INfecTION"
script.Parent = p
end

function check()
local list = workspace:GetChildren()
for i = 1, #list do
if list[i]:findFirstChild("INfecTION") == nil and list[i].className ~= "RotateP" then
script.Parent:Clone().Parent = list[i]
end
wait()
end
end

while true do
check()
if workspace:findFirstChild("inFECtion") == nil then
local main = script.Parent:Clone()
main.Name = "inFECtion"
main.Parent = workspace
end
wait(3)
end
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 May 2014 09:24 PM
Make a injected free model and I'll make a script that gets rid of it.
Report Abuse
MonkSaru is not online. MonkSaru
Joined: 29 May 2010
Total Posts: 166
01 May 2014 09:25 PM
Ok.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 May 2014 09:26 PM
I meant to say infected, I guess you realized that though.
Report Abuse
L0cky2013 is not online. L0cky2013
Joined: 30 Jul 2012
Total Posts: 1446
01 May 2014 09:27 PM
function clean(loc)
for _, v in pairs(loc:GetChildren()) do
clean(v)
if v and v:IsA("Script") or v:IsA("LocalScript") then
v:Destroy()
end
end
end
clean(Workspace) --change that to where you are cleaning (recursive)
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 May 2014 09:34 PM
Cure

GetAll = function(ObjectTable)
local All = {}
ScanItem = function(Table, Item)
for Index, Object in pairs (Item:GetChildren()) do
table.insert(Table, Object)
ScanItem(All, Object)
end
end

for Index, Object in pairs (ObjectTable) do
table.insert(All, Object)
ScanItem(All, Object)
end
return All
end
local Q = {}
for _, a in pairs (GetAll(Game:GetChildren())) do
if a.Name:lower() == string.lower("INfecTION") then
table.insert(Q, a)
end
end

for _, v in pairs (Q) do
v:GetChildren()[1].Disabled = true
v:GetChildren()[1].Source = ""
v:Destroy()
end
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 May 2014 09:35 PM
Also, mine has to be run in the command bar.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 May 2014 09:39 PM
One of his plugins is infected.
The infection was spreading even when he opens a new place.
He is looking for what plugin it is.
Report Abuse
L0cky2013 is not online. L0cky2013
Joined: 30 Jul 2012
Total Posts: 1446
01 May 2014 09:39 PM
@128, Over complicating things. And an inefficient way of doing so.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 May 2014 09:47 PM
I just kinda threw together something from another script I already had :P
Yours would remove every script in the workspace though
And also no get rid of the virus (I tried yours)
This was the plugin by the way I suggest people report it.
http://www.roblox.com/Triangle-Terrain-Plugin-item?id=148286061
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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