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)
Like the comments said, you need to add an "end" at the end of line 5. So...
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 end) script.Parent.ClickDetector.MouseClick:connect(OnClicked)
Or you could make the part neon. Insert a script into the part:
script.Parent.Material = Enum.Material.Neon