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 » Scripters
Home Search
 

Re: If part.BrickColor = ("Lime green") then part:Destroy()

Previous Thread :: Next Thread 
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
09 Feb 2015 05:31 PM
How would I make a script like above, where it will delete any block thats color is Lime green?
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
09 Feb 2015 05:36 PM
function r(a)
if a:IsA('BasePart') and a.BrickColor == BrickColor.new('Lime green') then
a:Destroy();

elseif a:IsA('Model') then
for _, v in pairs(a:GetChildren()) do
r(v);
end;
end;
end;

for _, v in pairs(workspace:getChildren()) do
r(v);
end;
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
09 Feb 2015 05:37 PM
Eww... "just about colons".
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
09 Feb 2015 05:37 PM
@OP

if part.BrickColor = BrickColor.new("Line green") then
part:Destroy()
end
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
09 Feb 2015 05:40 PM
Thanks!
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
09 Feb 2015 05:41 PM
Lime green*
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
09 Feb 2015 05:48 PM
Np dude.
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
09 Feb 2015 05:51 PM
If part.BrickColor == BrickColor.new("Lime green") then part:Destroy() end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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