I need help with this. I tinkered around with a free model (mainly for learning how coding works) and it isn't working. What is wrong here?
mylight = game.Workspace.Lamp.Lamp.ButtonLight.PointLight
function click()
mylight.Enabled = not mylight.Enabled
end
Anyways, the output suggests putting a '=' sign by Function. Its not working. the 2nd line is the only problem. This is for a lantern with a clickable on/off button.
