pa_pane
|
  |
| Joined: 23 Feb 2013 |
| Total Posts: 865 |
|
|
| 20 Mar 2017 08:16 AM |
local module = {}
local color = BrickColor.new(math.random(), math.random(), math.random()) for _,i in pairs (script.Parent.Parent:GetChildren()) do if i.Name == "Color" then i.BrickColor = color end end
return module
uo |
|
|
| Report Abuse |
|
|
|
| 20 Mar 2017 08:21 AM |
For one, that all needs to be wrapped in a module function. Secondly, don't you need to put some parameters in math.random()?
~MightyDantheman~ |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|