|
| 09 Nov 2014 02:42 PM |
So I've dug up an old place I've made. It has a fire virus.
I had a script a while ago that automatically removed removed these. Does anyone have it? If so, please post it.
~Get Radekt |
|
|
| Report Abuse |
|
|
|
| 09 Nov 2014 02:43 PM |
| It depends on the conditions. Antivirus scripts can't remove every kind of everything, it would be easier to make it yourself, since it is only, like, three lines. |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 09 Nov 2014 02:45 PM |
function cleanup(p) for i,v in pairs(p:GetChildren()) do if v:IsA("Fire") then v:Destroy() else cleanup(p) end end end
cleanup(workspace) |
|
|
| Report Abuse |
|
|
TGazza
|
  |
| Joined: 16 Jan 2008 |
| Total Posts: 242 |
|
|
| 09 Nov 2014 02:52 PM |
hey i've just came across your post and ive got the plugin you may need its here: http://www.roblox.com/Guardian-Angel-Defender-V0-6-6-Finally-item?id=164968707
it can remove fire,3d beings,youvebeenowned... things, basically anything that would be considered a virus or something that slows down a place
It also cleans your place from blank objects, when i say blank i mean objects like Decals without any set TextureId's or specialmeshes without meshIds etc.. get removed
If you want to check out my plugin you can ive been Vblogging it on my youtube channel, heres a link to the playlist :) https://www.youtube.com/playlist?list=PLcR-0uLOOm6vdrcrfQqCrwGs3MyarAbQU
hope this helps ya! and if you find any bugs let me know! and ill update squish em :D |
|
|
| Report Abuse |
|
|
|
| 09 Nov 2014 03:21 PM |
my version:
function isClass(o,c) for a,b in next,c do if(o.className==b) then return true; end; return false; end; function _(c,f) for a,b in next,f:children'' do if(isClass(b,c)) then b:Destroy(); end; _(c,b); end; end;
_({'RotateP','Fire'},workspace); |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 09 Nov 2014 03:27 PM |
Guys, c'mon.
virus = game:FindFirstChild ("Fire", true)
while virus do if virus:FindFirstChild ("Spread") then virus:Destroy () end end |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
| |
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
| |
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 09 Nov 2014 03:37 PM |
| repeat -facedesk- until nil |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
| |
|
|
| 09 Nov 2014 03:39 PM |
| iiess he is totally ocrrect and his script works 100% stop bieng a troll |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 09 Nov 2014 03:43 PM |
I'm not even trolling.
It works! Don't you know about the secondary argument for FindFirstChild? |
|
|
| Report Abuse |
|
|
|
| 09 Nov 2014 03:44 PM |
@max the only reason they'd assume you're trolling is because you forgot to put a wait() in your loop
if it's not that, then they're stupid |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 09 Nov 2014 03:44 PM |
It wouldn't work, it would only delete 1 fire. And if you were to remove all the fires, any script that created it will do it again. |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 09 Nov 2014 03:44 PM |
| dat only runs once cus it only gets one fire |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 09 Nov 2014 03:47 PM |
right. I only even created the variable because I was tired of writing game:FindFirstChild ("Fire", true) over and over again.
Here's a revision: while game:FindFirstChild ("Fire", true) do if game:FindFirstChild ("Fire", true):FindFirstChild ("Spread") then game:FindFirstChild ("Fire", true):Destroy () end end |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 09 Nov 2014 03:49 PM |
I don't see why you don't just do
while true do game:FindFirstChild("Fire", true):Destroy(); end |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 09 Nov 2014 03:49 PM |
because not all fire is evil, cnt.
Not all fire is evil |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 09 Nov 2014 03:50 PM |
ya it is
u must destroy all fire
dis is the water revolution |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 09 Nov 2014 03:50 PM |
'Script that removes all viruses: fire' OP says fire is a virus, and wants to remove all viruses. I'm giving what the OP wants, not what I think is right D: |
|
|
| Report Abuse |
|
|