--created by
------------------------------------------
--Clear And Enter

check = true -- Global

function Clear()
print("Cleared")
Input = ""
end

script.Parent.Clear.ClickDetector.MouseClick:connect(Clear)




function Enter()
if Input == Code then
print("Entered")
Input = ""

local door = script.Parent.Parent.Door

for i = 1, 35 do
	door.CFrame = CFrame.new(door.Position + Vector3.new(0,0,0.1))
	wait(0.01)
end

wait(5) --Closes

for i = 1, 35 do
	door.CFrame = CFrame.new(door.Position - Vector3.new(0,0,0.1))
	wait(0.01)
end



return end
Input = ""
print("Wrong Code")
end




script.Parent.Enter.ClickDetector.MouseClick:connect(Enter)
