|
| 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
|
  |
| 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 |
|
|
|
| 09 Feb 2015 05:37 PM |
| Eww... "just about colons". |
|
|
| Report Abuse |
|
|
|
| 09 Feb 2015 05:37 PM |
@OP
if part.BrickColor = BrickColor.new("Line green") then part:Destroy() end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Stefan631
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1350 |
|
| |
|
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 |
|
|