generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: How do I remove fire from my place

Previous Thread :: Next Thread 
beastlywin123 is not online. beastlywin123
Joined: 24 Apr 2010
Total Posts: 19421
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 is not online. 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 is not online. 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
beastlywin123 is not online. beastlywin123
Joined: 24 Apr 2010
Total Posts: 19421
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
beastlywin123 is not online. beastlywin123
Joined: 24 Apr 2010
Total Posts: 19421
06 Dec 2014 03:16 PM
@xs

Thank you.
Saved me tons of time.
Report Abuse
Scottifly is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
06 Dec 2014 05:58 PM
you win again
ow
Report Abuse
cntkillme is not online. 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 is not online. 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 is not online. 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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
06 Dec 2014 06:06 PM
wouldn't*
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image