So the code I used is under this text, and I don't understand why it won't work. Can anybody help improve or fix the script?
function OnClicked(C)
if C then script.Parent.Parent.Next.PointLight.Brightness = 13
script.Parent.Parent.a.SurfaceLight.Shadows = false
wait(2)
script.Parent.Parent.Next.PointLight.Brightness = 0
end
script.Parent.ClickDetector.MouseClick:connect(OnClicked)

2 comments
You forgot to add an 'end' after line 5.
The end is after line 5...