|
Post by astral on Jul 15, 2017 2:08:26 GMT
local parts = script.Parent.Parent:GetChildren() I later refer to "parts" again later using this code:
for i = 1, #parts do
I'm trying to edit the BrickColor of the parts if its name is "Wall1"
How would I achieve this?
Thanks!
|
|
|
Post by Josh on Jul 15, 2017 17:06:09 GMT
for i, v in pairs(parts) do if v.Name == "Wall1" then v.BrickColor = BrickColor.new("Really red") end end
|
|
lae
Active Member
Veteran
Posts: 27
ROBLOX Username: LaeMVP
|
Post by lae on Jul 15, 2017 17:17:49 GMT
BrickColor is so last 2007 tis' time to upgrade to the new Color!!
|
|
|
Post by rhythic on Sept 27, 2017 10:32:32 GMT
BrickColor.new(r, g, b)
|
|