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?

11 comments
And what if I it to change to a Neon Green?
Doesn't matter. It should change to a Random colour. If it stays Neon Green, the server chose Neon Greem at random.
I ment I want it so when you click the button it stays turns to green and not a random
Then I don't really know the script. Sorry.
Thanks for the help, I figured it out :D
Alright I got it working but do you know how i can change the PointLight color inside the brick?
Err, a few more details please?
brick.SurfacePart.Lights.LightPart1.PointLight = Color.new(0, 255, 0) I need the PointLight inside the brick to change to 0,255,0
brick.SurfacePart.Lights.LightPart1.PointLight.Color = Color3.new(0,255,0) --That should work I think.
Thanks!
Glad to help