I used to be a good scripter until 2013. Things got advanced and I lost some of my scripting knowledge. I'm making a light switch and I don't know how to call the Material and Color3 of the brick. Help? The script currently is
light = true
local lights = script.Parent.Parent.Model:GetChildren()
function onClicked()
if light == true then
lights.
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Thanks

1 comment
To reference a brickColour you need to do (for example) lights.BrickColor = BrickColor.new("Really red") or lights.Material = ("Concrete")