Can anyone here explain why this won't work? I'm making a script that changes the time of day when clicked.
Button1 = script.Parent
function onClicked(Button1)
script.Parent.Parent.Lighting.TimeOfDay = 17
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

3 comments
Bad answer. :00 cant be called on "17".
It must be a string.
yeah sorry, fixed it