|
| 06 Dec 2014 03:09 PM |
So fire is in every brick in my game, no FM's used.
But regardless, how can I remove all the "fire" without doing it manually? Is there a script for it?
Thanks. |
|
|
| Report Abuse |
|
|
cole7778
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 7827 |
|
|
| 06 Dec 2014 03:14 PM |
| there wouldnt be fire unless you used a free model |
|
|
| Report Abuse |
|
|
Xsitsu
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 2921 |
|
|
| 06 Dec 2014 03:15 PM |
function Search(obj)
if obj:IsA("Fire") then obj:Destroy() return end
for _, v in pairs(obj:GetChildren()) do Search(v) end
end
Search(game.Workspace)
Copy paste that into the command bar. |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2014 03:15 PM |
Well I didn't, I dunno how it got there but it's there.
So how do I remove it. |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2014 03:16 PM |
@xs
Thank you. Saved me tons of time. |
|
|
| Report Abuse |
|
|
Scottifly
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 9180 |
|
|
| 06 Dec 2014 05:39 PM |
| But did you remove the Script that spread it? |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 06 Dec 2014 05:49 PM |
People always overdo this:
while Workspace:FindFirstChild ("Fire",true) do if workspace:FindFirstChild ("Fire",true):FindFirstChild ("Spread") then -- to differentiate normal fire from viral fire workspace:FindFirstChild ("Fire",true):Destroy () end end |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 06 Dec 2014 05:50 PM |
see you be over doing it too
while true do local sp = Workspace:FindFirstChild ("Spread", true); if not sp then break; end sp.Parent:Destroy(); end |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 06 Dec 2014 05:54 PM |
nope:
while true do local sp = Workspace:FindFirstChild ("Spread", true) if sp then sp.Parent:Destroy() end end
if you broke the loop, then you'd only delete all of them until you got to legit fire...right? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 06 Dec 2014 05:55 PM |
| No, I'm looking for Spread, not fire :) |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 06 Dec 2014 06:00 PM |
Nah, the "virus" creator wins:
script.Name = "Spr3ad" |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 06 Dec 2014 06:02 PM |
lmao Does it have that in the script? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 06 Dec 2014 06:06 PM |
| It could be, I won't know because when I try looking for these types of scripts I can never find them. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|