--[[ss1.Touched:connect(function()
	if IsOpen.Value == false then
		OtherDir.Value = false
		opendoor()
		wait(TimeDelay)
		closedoor()
	end
end)]]



trigger.Changed:Connect(function()
	if InUse.Value == false then
		if trigger.Value == true and IsOpen.Value == false then
			opendoor()
		elseif trigger.Value == false and IsOpen.Value == true then
			closedoor()
		end
	end
end)
