Hi,
I have this script and I want it to change the colour of the button on the Surface Gui when clicked. Everything else works apart from the colour changing.
Please help!
This is the script;
LP = script.Parent.Parent.Parent.Parent.Parent.Parent.SpotLight1.Light.SpotLight
function Click(mouse)
if LP.Enabled == true then
LP.Enabled = false
script.Parent.BackgroundColor3 = BackgroundColor3.new("163, 162, 165")
else
LP.Enabled = true
script.Parent.BackgroundColor3 = BackgroundColor3.new("165, 0, 0")
end
end
script.Parent.MouseButton1Down:connect(Click)
Any more questions just ask
Thanks Kieran
