Closed=true function LockItems() end script.Parent.Touched:connect(function(W)if W~=nil and(W.Parent~=nil and(W.Parent:FindFirstChild("\067\097\114\100\078\117\109\098\101\114")~=nil and W.Parent.CardNumber.Value==0))then if Closed==true then Closed=1 script.Locked.Value=false LockItems()script.Parent.Open.Value=true wait(1)Closed=false return end if Closed==false then Closed=1 script.Locked.Value=true LockItems()script.Parent.Open.Value=false wait(1)Closed=true return end end end)



Closed = true

function LockItems()

end

script.Parent.Touched:connect(function(P)
	if P ~= nil and P.Parent ~= nil and P.Parent:FindFirstChild("CardNumber") ~= nil  and P.Parent.CardNumber.Value == 0 then
		if Closed == true then
			Closed = 1
			script.Locked.Value = false
			LockItems()
			script.Parent.Open.Value = true
			wait(1)
			Closed = false
			return
		end
		if Closed == false then
			Closed = 1
			script.Locked.Value = true
			LockItems()
			script.Parent.Open.Value = false
			wait(1)
			Closed = true
			return
		end

	end
end)
