Expoltion
|
  |
| Joined: 29 Sep 2013 |
| Total Posts: 15135 |
|
|
| 03 Aug 2014 08:54 PM |
How would I change the color of all the parts in workspace. For example, I want to change the Bright blue parts to Bright red. Any help?
|
|
|
| Report Abuse |
|
|
|
| 03 Aug 2014 08:54 PM |
| I just made this thread :D, it's a script ran in the command line. |
|
|
| Report Abuse |
|
|
Expoltion
|
  |
| Joined: 29 Sep 2013 |
| Total Posts: 15135 |
|
|
| 03 Aug 2014 08:55 PM |
can you link me to the thread? :)
|
|
|
| Report Abuse |
|
|
|
| 03 Aug 2014 08:56 PM |
| I never got the answer yet :c. |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 03 Aug 2014 08:58 PM |
t = workspace:children() for i = 1, #t do if t[i]:IsA'BasePart' then t[i].BrickColor = t[i].BrickColor.Name == 'Bright blue' and BrickColor.new'Bright red' or t[i].BrickColor end end |
|
|
| Report Abuse |
|
|
theKingBH
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 1832 |
|
|
| 03 Aug 2014 08:58 PM |
Change all the names of the bricks you want to change color to block then:
game.Workspace.Block.BrickColor = BrickColor.new("Bright red") |
|
|
| Report Abuse |
|
|
Kyuro
|
  |
| Joined: 03 Sep 2012 |
| Total Posts: 5800 |
|
|
| 03 Aug 2014 09:00 PM |
Here's my idea of how it *MIGHT* work.
-- ALL BRICKS -- X = game.Workspace:GetChildren() if X:isA("Part") then X.Color = ("Bright Yellow") end
-- CERTIAN COLORS -- X = game.Workspace:GetChildren() if X:isA("Part") then if X.Color == ("Really Red") then X.Color = ("Bright Yellow") end end
This may or may not work; I haven't tested it. |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 03 Aug 2014 09:01 PM |
-- NEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEOPE
-- ALL BRICKS -- X = game.Workspace:GetChildren() if X:isA("Part") then X.BrickColor = BrickColor.new("Bright Yellow") end
-- CERTIAN COLORS -- X = game.Workspace:GetChildren() if X:isA("Part") then if X.BrickColor == BrickColor.new("Really Red") then X.Color = BrickColor.new("Bright Yellow") end end |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 03 Aug 2014 09:02 PM |
ugh.
Color = "Bright red";
for i,v in pairs(game.Workspace:GetChildren()) do if v:IsA("Part") then v.BrickColor = BrickColor.new(Color) end end |
|
|
| Report Abuse |
|
|
LuaRekt
|
  |
| Joined: 02 Aug 2014 |
| Total Posts: 1 |
|
|
| 03 Aug 2014 09:02 PM |
for i,v in pairs(Workspace:GetChildren()) do if v.className == "Part" then v.BrickColor = BrickColor.new("Bright red") --idk change to wat u want end end |
|
|
| Report Abuse |
|
|
Kyuro
|
  |
| Joined: 03 Sep 2012 |
| Total Posts: 5800 |
|
|
| 03 Aug 2014 09:02 PM |
^ Don't be so harsh about it :P I'm still a noob xP |
|
|
| Report Abuse |
|
|