LeadStyle
|
  |
| Joined: 01 Aug 2012 |
| Total Posts: 1322 |
|
|
| 15 Dec 2014 05:43 PM |
| What is this Infection script? How do you remove it? It makes the game lag and is annoying. I used f3x tools to build my game, and it all has 'InFEction'in every brick. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 15 Dec 2014 06:11 PM |
Put this in the command bar
function clean(o, n) for _, object in next, o:GetChildren() do if object.Name:lower() == n:lower() then object:Destroy() else clean(object, n) end end end
clean(workspace, "infection")
If it doesn't work, make a free model of an infected brick so I can look at it |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 15 Dec 2014 09:49 PM |
Sorry for the late reply, I didn't see you sent me a message
It didn't work because the virus renames itself, I tested this, it works
Here it is on codepad /FceBBBrF |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2014 12:40 AM |
or try this:
function _(a) for c,d in next,a:getChildren'' do if(d:isA[[RotateP]]) then d:Destroy(); end; _(d); end; end; _(workspace); |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2014 05:57 AM |
| Make a free model of the infected brick please. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 16 Dec 2014 03:03 PM |
| He already did, I already looked at it, I already tested my script and it gets rid of it (My second script) |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 16 Dec 2014 03:05 PM |
| just hate those name changing ones, must destroy them all... |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 16 Dec 2014 03:10 PM |
I don't get why more viruses don't just pick a random name so it can't just use the table of names they have to destroy them
Or use common names, and use more than 1 name from the table (concat the strings together)
It would make getting rid of them a lot harder for most people (Although you could always use script.Source to check whats in the script and destroy it if it matches the virus's script) |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2014 03:18 PM |
| Well, they choose random names. Making random strings should still be effective. |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2014 03:19 PM |
Script Source is locked, you can't use it anymore. It is very sad.
-DrakoNinjaMaster- |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 16 Dec 2014 03:22 PM |
Yah, thats what I meant, thats why I said instead of picking from a table
function randomString(x) local output = "" for _ = 1, (x or 16), 1 do output = output .. (math.random(3) == 1 and math.random(0, 9) or string[math.random(2) == 1 and "upper" or "lower"](string.char(math.random(97, 122)))) end return output end
script.Name = randomString(math.random(1, 100))
--do virus stuff |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2014 03:29 PM |
Yeah, I know. It is strange isn't it. People don't usually make infections anymore since they are less effective.
-DrakoNinjaMaster- |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 16 Dec 2014 03:53 PM |
command bar noobs
function recurse(obj, f) for _, v in ipairs(obj:GetChildren()) do f(v) recurse(v, f) end end
recurse(game, function(obj) if obj:IsA("Script") then if obj.Source:lower():match("script.name") then obj:Destroy() end end end)
if you're making scripts which rename themselves then clearly you're doign something wrong |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2014 06:21 PM |
Well, making scripts that change their names are great for making infections Nobody does it for some reason. That is all.
-DrakoNinjaMaster- |
|
|
| Report Abuse |
|
|