i have this scripts
bin = script.Parent function onClicked(mouse) script.Parent.Parent.Light.Lamp.Enabled = true end bin.ClickDetector.MouseClick:connect(onClicked)
bin = script.Parent function onClicked(mouse) script.Parent.Parent.Light.Lamp.Enabled = false end bin.ClickDetector.MouseClick:connect(onClicked)
but if i copy the light don't work with the two lights
How i make the two models lights on?
bin = script.Parent local toggle = false function onClicked(mouse) if toggle == false then toggle = true script.Parent.Parent.Light.Lamp.Enabled = true toggle = false script.Parent.Parent.Light.Lamp.Enabled = false end end bin.ClickDetector.MouseClick:connect(onClicked)