|
| 14 Sep 2015 01:48 PM |
I'm currently trying to delete fire from over 4k+ bricks, is there a known plugin that can easily delete all fire?
There's no need to fear, SimplyElite is here. |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 14 Sep 2015 01:49 PM |
Just run this in your command bar:
fire = workspace:FindFirstChild("Fire", true)
while fire do fire:Destroy() fire = workspace:FindFirstChild("Fire", true end |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2015 01:50 PM |
You could do this in the command bar:
local Stack = {game} while Stack[1] do for Index, Child in next, Stack[1]:GetChildren() do if Child:IsA("Fire") then Child:Destroy() else table.insert(Stack, Child) end end table.remove(Stack, 1) end |
|
|
| Report Abuse |
|
|
Haggie125
|
  |
| Joined: 02 Apr 2008 |
| Total Posts: 761 |
|
|
| 14 Sep 2015 01:50 PM |
| Oh damn I just noticed you can make FindFirstChild recursive. That's useful |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2015 01:51 PM |
Unfortunately, you can't do that with GetChildren. Oh well xD It's just another thing to wrap I guess. |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2015 01:52 PM |
@Mor That doesn't work for me.
There's no need to fear, SimplyElite is here. |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2015 01:54 PM |
Nothing is working.
There's no need to fear, SimplyElite is here. |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 14 Sep 2015 01:55 PM |
Forgot a parenthesis:
fire = workspace:FindFirstChild("Fire", true)
while fire do fire:Destroy() fire = workspace:FindFirstChild("Fire", true) end |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2015 01:58 PM |
@Mor Thank you so much, you saved me so much time.
There's no need to fear, SimplyElite is here. |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2015 02:40 PM |
You would want a recursive function. Read the script I posted here but change it to look for fires instead of lights: http://www.roblox.com/Forum/ShowPost.aspx?PostID=174118026
choo choo |
|
|
| Report Abuse |
|
|