-- State: Wether or not the light is on

local work = script.Parent.Value
local status = script.Parent.Parent.Parent.On
local LED = script.Parent.Parent.LED

function onTouch()
	wait()
	status.Value = true
	LED.Material = "Glass"
	LED.BrickColor = BrickColor.new("Medium stone grey")
	wait(30)
	status.Value = false
	LED.Material = "Neon"
	LED.BrickColor = BrickColor.new("Forest green")
end	

script.Parent.Touched:connect(onTouch)
