I have a SurfaceGui button and when I click the button, I need multiple parts in a model to change colors.
function Clicked() brick = script.Parent brick.Parent.Parent.Lights.LightPart1 = BrickColor.random() wait(0.5) end script.Parent.MouseButton1Down:connect(Clicked)
This dose not work, Help?
Line 3:
--Line 3 brick.Parent.Parent.Lights.LightPart1.BrickColour = BrickColor.random() -- I think this should work
It's because you have to use a converter script, to convert your BrickColor into Color3. GUIs only work on Color3.