Firescrew
|
  |
| Joined: 03 Aug 2012 |
| Total Posts: 1484 |
|
|
| 17 Jan 2014 04:05 PM |
for _, v in pairs(Workspace:GetChildren()) do if v:IsA("Fire") then v:Destroy() end end |
|
|
| Report Abuse |
|
|
BEART12
|
  |
| Joined: 22 Oct 2008 |
| Total Posts: 3190 |
|
|
| 17 Jan 2014 04:09 PM |
I believe it is:
--for _, v in pairs(Game.Workspace:GetChildren()) do |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2014 04:09 PM |
you realise what you put is exactly the same as OP.
#nerdsunited |
|
|
| Report Abuse |
|
|
BEART12
|
  |
| Joined: 22 Oct 2008 |
| Total Posts: 3190 |
|
|
| 17 Jan 2014 04:11 PM |
| I thought you had to put(".Game") in front of it? |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2014 04:11 PM |
help!!!!*
^ what's actually the prob man? |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2014 04:12 PM |
Try using if v.ClassName == "Fire" then.. and if that dont work, there must be something else rong. .. |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 17 Jan 2014 04:12 PM |
for _, v in pairs(Workspace:GetChildren()) do if v and v:IsA("BasePart") and v:findFirstChild("Fire") then v.Fire:Destroy() end end |
|
|
| Report Abuse |
|
|
| |
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 17 Jan 2014 04:16 PM |
hi = function(noob) for i,v in pairs(noob:GetChildren()) do if v:IsA("Fire") then v:Destroy() end hi(v) end
hi(workspace) |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2014 04:19 PM |
| Xnite, problem is already solved, it was cuz he was check in the workspace, not parts(that have fire) |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
| |
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 17 Jan 2014 05:20 PM |
for i,v in pairs(game.Workspace:GetChildren()) do if v.ClassName == "Fire" then v:Destroy() end |
|
|
| Report Abuse |
|
|