script.Parent.ClickDetector.MouseClick:connect(function() script.Sound:play() if script.Parent.PointLight.Enabled == true then script.Parent.Light.Enabled = false else script.Parent.PointLight.Enabled = true if script.Parent.ClickDetector.MouseClick:connect(function() PointLight.Sound:pause() end end
Red at line 4 says 'then' expected near 'function' what does this mean and how do I fix it? :(
Help me please!
