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

5 comments
Erm, it still dose not work... Maybe something with the color3?
The output says: 18:05:40.548 - Workspace.Part.OnClicked:2: attempt to index global 'GreenLightBox' (a nil value) 18:05:40.548 - Stack Begin 18:05:40.549 - Script 'Workspace.Part.OnClicked', Line 2 18:05:40.549 - Stack End 18:05:40.550 - Disconnected event because of exception
Fixed!
Color3.new's arguments are in the range [0, 1] not [0, 255] and have to be scaled accordingly
Are you sure? Because [0, 255] works fine for me in a script I made awhile back... Odd...