-- Door moving function

function Move(O)
	DoorLogo.Moving:Play()
	 for i = 1, 58 do
  		wait(0.01)
		-- Changes the door cframe position.
  		local X, Y, Z = DoorSeg.CFrame.X, DoorSeg.CFrame.Y, DoorSeg.CFrame.Z
  		Door:SetPrimaryPartCFrame(DoorSeg.CFrame * CFrame.new((O and -0.1 or 0.1),0,0))
 	end	
	DoorLogo.Moving:Stop()
	DoorLogo.Closed:Play()
end
