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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Why isn't this working?

Previous Thread :: Next Thread 
coolcoolkidcheseey45 is not online. coolcoolkidcheseey45
Joined: 22 Feb 2009
Total Posts: 5668
02 Oct 2014 05:19 AM
children = Workspace:GetChildren();
for k, child in pairs(children) do
if child:IsA("Part") then
child.BrickColor = BrickColor.new("Br. yellowish green");
wait(5)
fire = Instance.new("Fire", child);
fire.Size = 5;
fire.Heat = 20
wait(1)
fire.Enabled = true;
wait(6);
child:Destroy();

end
end
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
02 Oct 2014 06:27 AM
Try using the number for the colour instead of the name. People often have issues with the names because something like they don't have capital letters
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
02 Oct 2014 06:28 AM
... Why would you want to destroy all parts in the Workspace anyway?
Report Abuse
coolcoolkidcheseey45 is not online. coolcoolkidcheseey45
Joined: 22 Feb 2009
Total Posts: 5668
02 Oct 2014 06:40 AM
Sorry, I didn't specify.
The fire part isn't working. I want to make "Fire" and parent it on every child in Workspace, but it doesn't seem to be working.



"That's the most memorising thing I have ever looked at." ~talkbar || "It's quote simple." -AX94
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
02 Oct 2014 07:46 AM
Sorry, can't really help you there ^^'
I haven't used Fire in a loonnnggg time, so I don't know what goes on.
Report Abuse
DragonClan488 is not online. DragonClan488
Joined: 29 Nov 2012
Total Posts: 291
02 Oct 2014 07:48 AM
OK but does this script function? I mean it doesn't give you errors?
Report Abuse
coolcoolkidcheseey45 is not online. coolcoolkidcheseey45
Joined: 22 Feb 2009
Total Posts: 5668
02 Oct 2014 08:18 AM
It doesn't seem to give me errors, and I'm just experimenting with scripts that destroy. :]
Obviously I'm not planning on spreading them, I just want to practice scripting.


"That's the most memorising thing I have ever looked at." ~talkbar || "It's quote simple." -AX94
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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