|
| 20 Sep 2015 11:31 AM |
I'm a bit rusty, and forgot how to do it. I came up with this: for i,v in pairs(game.Workspace.Pillar:GetChildren()) do if v.Name == "Brick" then local colors = {"Medium red", "Medium stone grey", "Dark stone grey"} local thing = math.random(1,#colors:GetChildren()) local color = colors[thing] v.BrickColor = BrickColor.new(color) end end
if siggy == false then print"nooo :(" end |
|
|
| Report Abuse |
|
|
KoreanBBQ
|
  |
| Joined: 06 Mar 2015 |
| Total Posts: 1436 |
|
|
| 20 Sep 2015 12:07 PM |
would work
#code print("TreeBranch. Trader, Forumer, Developer".."R$4,068") |
|
|
| Report Abuse |
|
|
Stymi
|
  |
| Joined: 19 Sep 2015 |
| Total Posts: 1077 |
|
|
| 20 Sep 2015 12:09 PM |
Hey!
This is much easier:
local color = colors[math.random(#colors)]
Also, you can't "GetChildren()" a table. |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2015 12:11 PM |
Thanks stymi!
if siggy == false then print"nooo :(" end |
|
|
| Report Abuse |
|
|