|
| 25 Jun 2015 04:49 PM |
How to write a script that changes color
If find brickcolor brown then brickcolor == green
Obviously not a script @above, just an example for what i'm looking for
|
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 25 Jun 2015 04:57 PM |
Example
if part.BrickColor == BrickColor.new("Bright red") then
part.BrickColor = BrickColor.new("Bright blue")
end |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2015 05:48 PM |
I'm looking for more of this: It only colors one instead of repeating the process, how do I make it repeat / find a different brick
while true do part = script.Parent:FindFirstChild("Brick") if part.BrickColor == BrickColor.new("Bright red") then part.BrickColor = BrickColor.new("Bright blue") part.Name = "Colored" end |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2015 05:52 PM |
Eew no, use .Changed.
Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784 |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2015 05:55 PM |
| My script works for one brick, i need it to do it to all the bricks in the model that have the corresponding color |
|
|
| Report Abuse |
|
|
| |
|
viplav37
|
  |
| Joined: 17 Aug 2011 |
| Total Posts: 1918 |
|
|
| 25 Jun 2015 06:58 PM |
| "FindFirstChild" is the reason its only working for one. try making a table. |
|
|
| Report Abuse |
|
|