Firstly, I can't script to save my life, so explain to me like I was 5.
I have the following script, inside a block which will be the button for three lights that will be random colours;
function onClicked(playerWhoClicked)
script.Parent.Parent.light1 = BrickColor.Random()
script.Parent.Parent.light2 = BrickColor.Random()
script.Parent.Parent.light3 = BrickColor.Random()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
However, this doesn't change the colour of any of the lights.
Someone help? :/ |