local o=script.Parent.Interactive local M={}local U="\117\112"local k=o.Sound function CheckChildren(o)for o,U in pairs(o:GetChildren())do if U:IsA("\066\097\115\101\080\097\114\116")and U.Name=="\076\105\103\104\116"then table.insert(M,U)end CheckChildren(U)end end CheckChildren(script.Parent.Parent)o.ClickDetector.MouseClick:Connect(function(o,v)if script.Parent.Parent.LightsOn.Value==false then script.Parent.Parent.LightsOn.Value=true for o=1,#M,1 do M[o].PointLight.Enabled=true M[o].Material=Enum.Material.Neon end else script.Parent.Parent.LightsOn.Value=false for o=1,#M,1 do M[o].PointLight.Enabled=false M[o].Material=Enum.Material.SmoothPlastic end end if U=="\117\112"then U="\100\111\119\110"script.Parent.Interactive.CFrame=script.Parent.Interactive.CFrame*CFrame.Angles(math.rad(-10),0,0)else U="\117\112"script.Parent.Interactive.CFrame=script.Parent.Interactive.CFrame*CFrame.Angles(math.rad(10),0,0)end k:Play()end)
--LightSwitch also found in Suburban

local interactive = script.Parent.Interactive
local lights = {}
local switch = "up"
local sound = interactive.Sound

function CheckChildren(obj)
	for i, v in pairs(obj:GetChildren()) do
		if v:IsA("BasePart") and v.Name == "Light" then
			table.insert(lights, v)
		end
		CheckChildren(v)
	end
end

CheckChildren(script.Parent.Parent)

interactive.ClickDetector.MouseClick:Connect(function(player, part)
	if script.Parent.Parent.LightsOn.Value == false then
		script.Parent.Parent.LightsOn.Value = true
		for i = 1, #lights do
			lights[i].PointLight.Enabled = true
			lights[i].Material = Enum.Material.Neon
		end
	else
		script.Parent.Parent.LightsOn.Value = false
		for i = 1, #lights do
			lights[i].PointLight.Enabled = false
			lights[i].Material = Enum.Material.SmoothPlastic
		end
	end
	if switch == "up" then
		switch = "down"
		script.Parent.Interactive.CFrame = script.Parent.Interactive.CFrame * CFrame.Angles(math.rad(-10), 0, 0)
	else
		switch = "up"
		script.Parent.Interactive.CFrame = script.Parent.Interactive.CFrame * CFrame.Angles(math.rad(10), 0, 0)
	end
	sound:Play()
end)
