juanse71
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 6784 |
|
|
| 02 Jan 2014 11:49 PM |
Diamonbladee gave me this (thanks)
--
color = {26,1,199,23,21,37,104,9,194} script.Parent.Touched:connect(function(hit) if hit.Name == "Brick" then local x = math.random(1,#color) hit.BrickColor = BrickColor.new(x) end end)
--
How do i make it so all the bricks have to be the same color.. |
|
|
| Report Abuse |
|
|
juanse71
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 6784 |
|
|
| 02 Jan 2014 11:52 PM |
| Sometimes i feel like my thread is not even visible to people |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2014 11:55 PM |
color = {26,1,199,23,21,37,104,9,194} script.Parent.Touched:connect(function(hit) if hit.Name == "Brick" then if hit.BrickColor == "COLOR HERE" then x = math.random(1,#color) hit.BrickColor = BrickColor.new(x) end end end)
--Give that a shot, I rushed btw. |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2014 11:56 PM |
color = {26,1,199,23,21,37,104,9,194} script.Parent.Touched:connect(function(hit) local x = math.random(1,#color) local list = hit.Parent:GetChildren() for i=1, #list do if list[i].Name == "Brick" then list[i].BrickColor = BrickColor.new(x) end end end end)
~DiamondBladee~ |
|
|
| Report Abuse |
|
|
juanse71
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 6784 |
|
|
| 02 Jan 2014 11:57 PM |
color = {26,1,199,23,21,37,104,9,194} script.Parent.Touched:connect(function(hit) if hit.Name == "Brick" then if hit.BrickColor == "COLOR HERE" then x = math.random(1,#color) hit.BrickColor = BrickColor.new(x) end end end)
--
Theres 2 color commands...
color = {26,1,199,23,21,37,104,9,194} and if hit.BrickColor == "COLOR HERE" then
What do i put in color here...if it shows the color codes already |
|
|
| Report Abuse |
|
|
juanse71
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 6784 |
|
| |
|
juanse71
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 6784 |
|
|
| 03 Jan 2014 12:00 AM |
01:00:02.814 - Workspace.Model.Sensor.Script:13: ')' expected (to close '(' at line 4) near 'end'
|
|
|
| Report Abuse |
|
|
|
| 03 Jan 2014 12:05 AM |
Whoops, my apologies:
color = {26,1,199,23,21,37,104,9,194} script.Parent.Touched:connect(function(hit) local x = math.random(1,#color) local list = hit.Parent:GetChildren() for i=1, #list do if list[i].Name == "Brick" then list[i].BrickColor = BrickColor.new(x) end end end)
~DiamondBladee~ |
|
|
| Report Abuse |
|
|
| |
|
juanse71
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 6784 |
|
|
| 03 Jan 2014 12:15 AM |
| How much can i thanks you..omg |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2014 12:18 AM |
@blazin
That's why he has a 64-bit system c:<
~DiamondBladee~ |
|
|
| Report Abuse |
|
|