--doEvent()

print(lowered)
return
end

function doEvent()
	if lowered == true then
	return --negative event
	else return --positive event
	end
end

function onClicked()
print("clicked") 
	if debounce == false then 

	delay(5, function() debounce = false end) 
		if lowered == false then 
		lower() 
		else if lowered == true then raise() end
		end 
	else return
	end 
end

script.Parent.Bar.ClickDetector.MouseClick:connect(onClicked) 
lower()
