Here is a script that i made.
local Lightswitch = workspace.House.Lightswitch
local Light = workspace.Light
workspace.House.Lightswitch.RotatePart.ClickDetector.MouseClick:Connect(function()
Lightswitch.RotatePart.Orientation = Vector3.new(-0, 180, 90) --Turn off
Light.Light1.PointLight.Enabled = false
Light.Light2.PointLight.Enabled = false
Light.Light3.PointLightEnabled = false
-- Lightswitch.RotatePart.Orientation = Vector3.new(-0, 0, -90) --Turned on
end)
Please, help. It will be actually nice.

2 comments
Not sure if this will fix your problem but at "Light.Light3.PointLightEnable = false", you forgot to put a period at "PointLight.Enabled".
When you are defining the variables you need to add: "game." before workspace.