--MainScript

repeat
	local Code1 = script.Parent.Code
	local EnteredCode1 = script.Parent.EnteredCode
	wait()
until Code1.Value == EnteredCode1.Value and Ready == true

CodeT1.Color = Color
CodeT1C:Destroy()
CodeT2.Color = Color
CodeT2C:Destroy()
CodeT3.Color = Color
CodeT3C:Destroy()

script.Parent.MainPart.Move:Play()

script.Parent.MainDoor:Destroy()
script:Destroy()
