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)



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)
