This script is made to change a SurfaceGUI from a lighter color is a brighter color. It's not working. (Yeah I know OOOOOoooOO) And nothing is showing up in the Output. Please help!
function OnClicked() GreenLightBox.GreenLightSG.GreenLightAndText.BackgroundColor3 = "57, 113, 100" script.Parent.ClickDetector.MouseClick:connect(OnClicked) end
function OnClicked() GreenLightBox.GreenLightSG.GreenLightAndText.BackgroundColor3 = Color3.new(57, 113, 100) end script.Parent.ClickDetector.MouseClick:connect(OnClicked)
You accidentally put the connection in the wrong place. EDIT: Fixed color3