local Lamp = script.Parent
local function onMouseClick(Player)
print("Lamp is now on")
if script.Parent.PointLight == nil then
Point = Instance.new("PointLight")
Point.Parent = script.Parent
end
end
Lamp.MouseClick:connect(onMouseClick)
This is my output
19:37:18.907 - PointLight is not a valid member of ClickDetector 19:37:18.907 - Script 'Workspace.Lamp.ClickDetector.Yo', Line 4 19:37:18.908 - Stack End 19:37:18.909 - Disconnected event because of exception
What have I done wrong in this script? If you need more info just ask.

1 comment
The name of the script is 'Yo' Just to let you know.