|
| 22 Feb 2013 01:38 AM |
how would I write a script to color every brick in a model? this is what I got. m = Workspace.Model:GetChildren() if m.ClassName = "Part" then m.BrickColor = BrickColor.new("color") end end |
|
|
| Report Abuse |
|
|
Struanmcd
|
  |
| Joined: 19 Sep 2008 |
| Total Posts: 369 |
|
|
| 22 Feb 2013 03:20 AM |
I'm writing this on the fly, but I believe it would look something like this
for _, v in pairs(game.Workspace.Model:GetChildren()) do if v.ClassName == "Part" then v.BrickColor = BrickColor.new("Really Red") end end |
|
|
| Report Abuse |
|
|
cart6157
|
  |
| Joined: 28 Feb 2009 |
| Total Posts: 2194 |
|
|
| 22 Feb 2013 07:57 AM |
| Lol, it's like he deleted a line because there are two ends. |
|
|
| Report Abuse |
|
|
bibo5o
|
  |
| Joined: 17 Jan 2009 |
| Total Posts: 414 |
|
|
| 22 Feb 2013 08:25 AM |
model = --idk where your model is, you have to put that part in :p
c = model:GetChildren() for i = 1, #c do if c[i].className == "Part" then c[i].BrickColor = BrickColor.new() --add color here end end
Hope this works, but I'm no expert scripter |
|
|
| Report Abuse |
|
|